| Index: Source/bindings/v8/ScriptController.cpp
|
| diff --git a/Source/bindings/v8/ScriptController.cpp b/Source/bindings/v8/ScriptController.cpp
|
| index cdd40e9cadb41b2b1c3101603cd81fc2af3a3368..681fa260cd4cb15ed2ce0e2d4f407ad96e20c939 100644
|
| --- a/Source/bindings/v8/ScriptController.cpp
|
| +++ b/Source/bindings/v8/ScriptController.cpp
|
| @@ -476,6 +476,10 @@ void ScriptController::namedItemRemoved(HTMLDocument* doc, const AtomicString& n
|
|
|
| bool ScriptController::canExecuteScripts(ReasonForCallingCanExecuteScripts reason)
|
| {
|
| + v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
| + if (isolate->InContext() && ScriptState::current(isolate)->world().isPrivateScriptIsolatedWorld())
|
| + return true;
|
| +
|
| if (m_frame->document() && m_frame->document()->isSandboxed(SandboxScripts)) {
|
| // FIXME: This message should be moved off the console once a solution to https://bugs.webkit.org/show_bug.cgi?id=103274 exists.
|
| if (reason == AboutToExecuteScript)
|
|
|