Index: third_party/WebKit/Source/core/frame/DOMWindowTimers.cpp |
diff --git a/third_party/WebKit/Source/core/frame/DOMWindowTimers.cpp b/third_party/WebKit/Source/core/frame/DOMWindowTimers.cpp |
index d4ecbc9dff45694c9ea11d487f313d42125c4acb..cc713a8b1b32e5cb3a1368bf5e26ea8727df3de4 100644 |
--- a/third_party/WebKit/Source/core/frame/DOMWindowTimers.cpp |
+++ b/third_party/WebKit/Source/core/frame/DOMWindowTimers.cpp |
@@ -54,7 +54,7 @@ static bool isAllowed(ScriptState* scriptState, ExecutionContext* executionConte |
} |
if (executionContext->isWorkerGlobalScope()) { |
WorkerGlobalScope* workerGlobalScope = static_cast<WorkerGlobalScope*>(executionContext); |
- if (!workerGlobalScope->script()) |
+ if (!workerGlobalScope->scriptController()) |
return false; |
ContentSecurityPolicy* policy = workerGlobalScope->contentSecurityPolicy(); |
if (isEval && policy && !policy->allowEval(scriptState, ContentSecurityPolicy::SendReport, ContentSecurityPolicy::WillNotThrowException)) |