gecko-dev/dom/tests
Jim Blandy ecca0ae8b4 Bug 1746245: Enable WebGPU in nightly Firefox r=jrmuizel,webidl,smaug,settings-reviewers,fluent-reviewers
Change the default value of `dom.webgpu.enabled` from `false` to `true` in Nightly builds.

Everything in `dom/webidl/WebGPU.webidl` that is `Exposed=(Window)` is also gated on the `dom.webgpu.enabled` pref, so it should not appear on `window` in beta or release builds.

Beyond that, WebGPU is not usable in beta or release builds regardless of the pref setting, because of these lines of code in `dom/webgpu/Instance.cpp`:

    #ifdef RELEASE_OR_BETA
        if (true) {
          return "WebGPU is not yet available in Release or Beta builds.";
        }
    #endif

This function is the only way to create a `GPUAdapter`, which is the only way to access any interesting parts of the WebGPU API.

The mochitest `dom/webgpu/mochitest/test_disabled.html` checks that the value of the `dom.webgpu.enabled` pref is `false`. This is now only appropriate in beta and release builds, so change `dom/webgpu/mochitest/mochitest-no-pref.ini` accordingly.

Update feature gate description in `toolkit/components/featuregates/FeatureGate.toml`.

Differential Revision: https://phabricator.services.mozilla.com/D173475
2023-03-30 16:22:25 +00:00
..
browser Bug 1444491 - Update existing internal tests based on the autofocus algorithm updates r=emilio 2023-02-15 20:08:37 +00:00
mochitest Bug 1746245: Enable WebGPU in nightly Firefox r=jrmuizel,webidl,smaug,settings-reviewers,fluent-reviewers 2023-03-30 16:22:25 +00:00
reftest Bug 1733945 - Simplify reftest annotations to assume skiaContent == true. r=jrmuizel 2021-10-04 15:19:10 +00:00
unit Bug 1786094 - Enable ESlint rule no-unused-vars on the global scope for dom/tests xpcshell-tests. r=asuth 2022-08-23 21:10:14 +00:00
moz.build Bug 1785125: Disable OriginPrivateFileSystem (OPFS) in Private Browsing r=asuth,dom-storage-reviewers,janv 2022-11-23 02:07:32 +00:00