Use the correct v8 context for conversions when calling into the plugin from JS
commit816f98b97b87b84e2e1e6cff7dd1f4da9749cc2c
authorraymes <raymes@chromium.org>
Mon, 29 Sep 2014 04:14:38 +0000 (28 21:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 29 Sep 2014 04:14:50 +0000 (29 04:14 +0000)
tree8245743ea6d3809654e34fe69d608064856b892a
parentbca743c6d94f14cecd9b9834b8e8e806c7ef9067
Use the correct v8 context for conversions when calling into the plugin from JS

Previously we were using the plugin context when converting objects during calls
into the plugin from JS. As decided previously in https://codereview.chromium.org/555583003/
we should always use the caller's context in these circumstances.

This CL also separates the checks in PepperPluginInstanceImpl::GetContext to
help diagnose crbug.com/416311.

BUG=416311

Review URL: https://codereview.chromium.org/588083002

Cr-Commit-Position: refs/heads/master@{#297136}
content/renderer/pepper/message_channel.cc
content/renderer/pepper/pepper_plugin_instance_impl.cc
content/renderer/pepper/pepper_plugin_instance_impl.h
content/renderer/pepper/pepper_try_catch.cc
content/renderer/pepper/pepper_try_catch.h
content/renderer/pepper/ppb_var_deprecated_impl.cc