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

Unified Diff: Source/web/WebSharedWorkerImpl.cpp

Issue 102243010: Move the worker script loading code to the worker process (phase:1/5) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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: Source/web/WebSharedWorkerImpl.cpp
diff --git a/Source/web/WebSharedWorkerImpl.cpp b/Source/web/WebSharedWorkerImpl.cpp
index c770479787f6a4627357870d9d4f5459986b9981..0973e004ecc8315542df6b10f56ad3dc7e7c63f4 100644
--- a/Source/web/WebSharedWorkerImpl.cpp
+++ b/Source/web/WebSharedWorkerImpl.cpp
@@ -255,6 +255,9 @@ void WebSharedWorkerImpl::startWorkerContext(const WebURL& url, const WebString&
setWorkerThread(SharedWorkerThread::create(name, *this, *this, startupData.release()));
workerThread()->start();
+ // FIXME(horo): This call will be moved when we implement script loading in WebSharedWorkerImpl.
+ if (client())
+ client()->workerScriptLoaded();
}
void WebSharedWorkerImpl::terminateWorkerContext()

Powered by Google App Engine
This is Rietveld 408576698