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

Unified Diff: third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h

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/InProcessWorkerMessagingProxy.h
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h
index 7ec60cb58bc50953f510948306bc02ba2b375a23..7291423282b83413340ad831813cfc1e172314e9 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h
@@ -87,6 +87,9 @@ class CORE_EXPORT InProcessWorkerMessagingProxy
return *worker_object_proxy_.get();
}
+ // Whether Atomics.wait (a blocking function call) is allowed on this thread.
+ virtual bool IsAtomicsWaitAllowed() { return false; }
+
private:
friend class InProcessWorkerMessagingProxyForTest;
InProcessWorkerMessagingProxy(ExecutionContext*,

Powered by Google App Engine
This is Rietveld 408576698