| Index: content/renderer/pepper/ppb_var_deprecated_impl.cc
|
| diff --git a/content/renderer/pepper/ppb_var_deprecated_impl.cc b/content/renderer/pepper/ppb_var_deprecated_impl.cc
|
| index 4188ee6e3d4d4214c101cc4f414f172e6bc8e8f7..dd2c80bbe839235f53f32e0f88e97ba16e59e1a9 100644
|
| --- a/content/renderer/pepper/ppb_var_deprecated_impl.cc
|
| +++ b/content/renderer/pepper/ppb_var_deprecated_impl.cc
|
| @@ -20,6 +20,7 @@
|
| #include "third_party/WebKit/public/web/WebElement.h"
|
| #include "third_party/WebKit/public/web/WebLocalFrame.h"
|
| #include "third_party/WebKit/public/web/WebPluginContainer.h"
|
| +#include "third_party/WebKit/public/web/WebPluginScriptForbiddenScope.h"
|
| #include "third_party/WebKit/public/web/WebScopedUserGesture.h"
|
|
|
| using ppapi::V8ObjectVar;
|
| @@ -56,7 +57,8 @@ class ObjectAccessor {
|
| if (exception && exception->type != PP_VARTYPE_UNDEFINED)
|
| return false;
|
| if (instance_)
|
| - return true;
|
| + return !instance_->is_deleted() ||
|
| + !blink::WebPluginScriptForbiddenScope::isForbidden();
|
| if (exception)
|
| *exception = ppapi::StringVar::StringToPPVar(kInvalidObjectException);
|
| return false;
|
|
|