Index: Source/core/workers/WorkerThreadTest.cpp |
diff --git a/Source/core/workers/WorkerThreadTest.cpp b/Source/core/workers/WorkerThreadTest.cpp |
index 1e8402d8502f7ea7942b51cdb75050a0d14f4733..e59b73d032e940f98f166b6adac665a05aa08a3f 100644 |
--- a/Source/core/workers/WorkerThreadTest.cpp |
+++ b/Source/core/workers/WorkerThreadTest.cpp |
@@ -175,6 +175,8 @@ public: |
CSPHeaderAndType headerAndType("contentSecurityPolicy", ContentSecurityPolicyHeaderTypeReport); |
headers->append(headerAndType); |
+ OwnPtrWillBeRawPtr<WorkerClients> clients = nullptr; |
+ |
m_workerThread->start(WorkerThreadStartupData::create( |
KURL(ParsedURLString, "http://fake.url/"), |
"fake user agent", |
@@ -183,7 +185,7 @@ public: |
DontPauseWorkerGlobalScopeOnStart, |
headers.release(), |
m_securityOrigin.get(), |
- WorkerClients::create(), |
+ clients.release(), |
V8CacheOptionsDefault)); |
m_workerThread->backingThread().postTask(FROM_HERE, new SignalTask(completionEvent.get())); |
completionEvent->wait(); |