| Index: Source/bindings/core/v8/NPV8Object.cpp
|
| diff --git a/Source/bindings/core/v8/NPV8Object.cpp b/Source/bindings/core/v8/NPV8Object.cpp
|
| index 22f5931b11972f514a52372b77c585747a34c360..6db91ed61db76b81029da21c1b54e55dcfe49624 100644
|
| --- a/Source/bindings/core/v8/NPV8Object.cpp
|
| +++ b/Source/bindings/core/v8/NPV8Object.cpp
|
| @@ -40,6 +40,7 @@
|
| #include "bindings/core/v8/npruntime_priv.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| #include "core/frame/LocalFrame.h"
|
| +#include "platform/ScriptForbiddenScope.h"
|
| #include "platform/UserGestureIndicator.h"
|
| #include "wtf/OwnPtr.h"
|
| #include "wtf/StringExtras.h"
|
| @@ -342,6 +343,9 @@ bool _NPN_Evaluate(NPP npp, NPObject* npObject, NPString* npScript, NPVariant* r
|
| bool _NPN_EvaluateHelper(NPP npp, bool popupsAllowed, NPObject* npObject, NPString* npScript, NPVariant* result)
|
| {
|
| VOID_TO_NPVARIANT(*result);
|
| + if (ScriptForbiddenScope::isScriptForbidden())
|
| + return false;
|
| +
|
| if (!npObject)
|
| return false;
|
|
|
|
|