зеркало из https://github.com/mozilla/gecko-dev.git
ecca0ae8b4
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 |
||
---|---|---|
.. | ||
browser | ||
mochitest | ||
reftest | ||
unit | ||
moz.build |