Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp

Issue 2826313003: Worklet: Enable module script loading for main thread worklets (Closed)
Patch Set: rebase (ready for review) Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp b/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp
index 108d35c1f638dbb838af1caa6cc3ebf01829b660..fc8d402de3762cbdd23d99f46551c4c96bb84e42 100644
--- a/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp
@@ -77,6 +77,11 @@ void WorkerOrWorkletGlobalScope::PostTask(
is_instrumented));
}
+bool WorkerOrWorkletGlobalScope::CanExecuteScripts(
+ ReasonForCallingCanExecuteScripts) {
+ return !IsJSExecutionForbidden();
kouhei (in TOK) 2017/05/24 13:48:21 Can this ever be forbidden?
nhiroki 2017/05/24 14:53:11 This is forbidden when script evaluation cannot co
+}
+
void WorkerOrWorkletGlobalScope::Dispose() {
DCHECK(script_controller_);
script_controller_->Dispose();

Powered by Google App Engine
This is Rietveld 408576698