Index: Source/bindings/core/v8/ScriptController.cpp |
diff --git a/Source/bindings/core/v8/ScriptController.cpp b/Source/bindings/core/v8/ScriptController.cpp |
index 7dc3212123de7f2577d90115dc8648409b2215d2..17bfc74d91f43c75612f57bd604afb3af7be0bff 100644 |
--- a/Source/bindings/core/v8/ScriptController.cpp |
+++ b/Source/bindings/core/v8/ScriptController.cpp |
@@ -499,8 +499,7 @@ bool ScriptController::canExecuteScripts(ReasonForCallingCanExecuteScripts reaso |
return true; |
} |
- Settings* settings = m_frame->settings(); |
- const bool allowed = m_frame->loader().client()->allowScript(settings && settings->scriptEnabled()) |
+ const bool allowed = m_frame->document()->scriptEnabled() |
|| isInPrivateScriptIsolateWorld(m_isolate); |
if (!allowed && reason == AboutToExecuteScript) |
m_frame->loader().client()->didNotAllowScript(); |