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

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

Issue 2841003002: Disallow Atomics.wait in ServiceWorker, allow in SharedWorker (Closed)
Patch Set: rename to IsAtomicsWaitAllowed Created 3 years, 8 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/DedicatedWorkerTest.cpp
diff --git a/third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp b/third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp
index 1da848b7ada3299d60be9533e1d895b881dc7515..779c340141626a5338f1248625e9005a91775849 100644
--- a/third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp
+++ b/third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp
@@ -118,6 +118,9 @@ class InProcessWorkerMessagingProxyForTest
CSPHeaderAndType header_and_type("contentSecurityPolicy",
kContentSecurityPolicyHeaderTypeReport);
headers->push_back(header_and_type);
+ WorkerV8Settings worker_v8_settings = WorkerV8Settings::Default();
+ worker_v8_settings.atomics_wait_mode_ =
+ WorkerV8Settings::AtomicsWaitMode::kAllow;
GetWorkerThread()->Start(
WorkerThreadStartupData::Create(
script_url, "fake user agent", source, nullptr /* cachedMetaData */,
@@ -125,7 +128,7 @@ class InProcessWorkerMessagingProxyForTest
"" /* referrerPolicy */, security_origin_.Get(),
nullptr /* workerClients */, kWebAddressSpaceLocal,
nullptr /* originTrialTokens */, nullptr /* workerSettings */,
- WorkerV8Settings::Default()),
+ worker_v8_settings),
GetParentFrameTaskRunners());
GetWorkerInspectorProxy()->WorkerThreadCreated(

Powered by Google App Engine
This is Rietveld 408576698