gecko-dev/dom/workers
Ryan Hunt f37dc5a46c Bug 1677204 - wasm: Factor out feature gating to declarative macro. r=lth
This commit adds a declarative `JS_FOR_WASM_FEATURES` macro which
expands for every WebAssembly proposal we are gating. Most feature
gating code is refactored to use this macro so that we have one place
we need to change to get the majority of this code working. The only
place that needs to be updated for new features is the browser pref
declaration code, as that cannot use this macro. This is documented
in the new WasmFeatures.h header.

The feature gating logic should work almost identically as before.
The changes are:
 * All browser prefs are moved to StaticPrefList.yaml
 * The code to enable a feature was conditionally compiled to not
   enable the feature at variously stages of the "flag-flow". Now
   the only place that is conditionally compiled to not work is
   in the WasmXFlag functions. This is to make the macro simpler
   and might be able to be reverted if need be.
 * The flag for gc is shortened from gcTypes to gc so that the
   existing usages of the wasmGcEnabled shell function don't have
   to change.

This commit also has the effect of giving function-references/gc/
exception-handling a proper browser pref for enabling the features.

Differential Revision: https://phabricator.services.mozilla.com/D110820
2021-04-09 20:03:51 +00:00
..
remoteworkers Bug 1701726 - Doc improvements for Remote and Shared workers. r=dom-workers-and-storage-reviewers,ttung 2021-03-29 17:25:53 +00:00
sharedworkers Bug 1701726 - Doc improvements for Remote and Shared workers. r=dom-workers-and-storage-reviewers,ttung 2021-03-29 17:25:53 +00:00
test Bug 1689675 - Ensure dom/workers/test/test_suspend.html works with SHIP-BFCache r=nika 2021-03-21 19:40:49 +00:00
ChromeWorker.cpp
ChromeWorker.h
ChromeWorkerScope.cpp
ChromeWorkerScope.h
JSExecutionManager.cpp
JSExecutionManager.h
JSSettings.h
MessageEventRunnable.cpp
MessageEventRunnable.h
moz.build Bug 1684139 - Adding mozilla specific wpt for timer nesting level in workers r=dom-worker-reviewers,asuth 2021-03-10 12:35:46 +00:00
nsIWorkerDebugger.idl
nsIWorkerDebuggerManager.idl
Principal.cpp
Principal.h
Queue.h
RegisterBindings.cpp
RuntimeService.cpp Bug 1677204 - wasm: Factor out feature gating to declarative macro. r=lth 2021-04-09 20:03:51 +00:00
RuntimeService.h Bug 1693967 - Avoid creating workers with the shutting down RuntimeService r=dom-worker-reviewers,asuth 2021-03-02 09:57:41 +00:00
ScriptLoader.cpp
ScriptLoader.h
Worker.cpp
Worker.h
WorkerCommon.h
WorkerCSPEventListener.cpp
WorkerCSPEventListener.h
WorkerDebugger.cpp Bug 1701190 - Make sure that a current window context exists. r=dom-worker-reviewers,asuth 2021-04-09 12:03:52 +00:00
WorkerDebugger.h
WorkerDebuggerManager.cpp
WorkerDebuggerManager.h
WorkerError.cpp
WorkerError.h
WorkerEventTarget.cpp
WorkerEventTarget.h
WorkerLoadInfo.cpp
WorkerLoadInfo.h
WorkerLocation.cpp
WorkerLocation.h
WorkerNavigator.cpp
WorkerNavigator.h
WorkerPrivate.cpp Bug 1695050 - Part 4: Update the call-sites of CookieJarSettings::Create() for ServiceWorker and Worker. r=asuth 2021-03-29 11:01:52 +00:00
WorkerPrivate.h Bug 1684139 - Adding mozilla specific wpt for timer nesting level in workers r=dom-worker-reviewers,asuth 2021-03-10 12:35:46 +00:00
WorkerRef.cpp
WorkerRef.h
WorkerRunnable.cpp Bug 1696347 - Remove redundant nullptr checks of return value of infallible new in dom/workers. r=dom-worker-reviewers,janv 2021-03-04 09:14:33 +00:00
WorkerRunnable.h
WorkerScope.cpp Bug 1699742 - Remove MOZ_GECKO_PROFILER ifdefs that are no longer needed, r=gerald. 2021-03-22 16:29:52 +00:00
WorkerScope.h
WorkerStatus.h
WorkerTestUtils.cpp Bug 1684139 - Adding mozilla specific wpt for timer nesting level in workers r=dom-worker-reviewers,asuth 2021-03-10 12:35:46 +00:00
WorkerTestUtils.h Bug 1684139 - Adding mozilla specific wpt for timer nesting level in workers r=dom-worker-reviewers,asuth 2021-03-10 12:35:46 +00:00
WorkerThread.cpp
WorkerThread.h