`dom.webgpu.enabled` requires a browser restart after changes to work properly
Categories
(Core :: Graphics: WebGPU, defect, P1)
Tracking
()
People
(Reporter: ErichDonGubler, Assigned: jgilbert, Mentored)
References
Details
Attachments
(4 files)
When attempting to use the WebGPU API (entry point navigator.gpu.requestAdapter, to be precise), a fresh Firefox instance with the dom.webgpu.enabled pref. set to true behaves as expected (see attached expected-webgpu-enabled-from-start.png). That is, calls to navigator.gpu.requestAdapter().await in a JS console returns expected results. Attempting to use requestAdapter while the pref. is disabled from start also yields expected behavior (see attached expected-webgpu-disabled-from-start.png).
Now, the problem: when changing dom.webgpu.enabled to true after it was false on start-up doesn't work! A restart of Firefox can work around this issue, but we should fully support dynamically enabling or disabling WebGPU via the dom.webgpu.enabled pref.
Steps to reproduce:
- Run a fresh session of Firefox Nightly with the
dom.webgpu.enabledpref. set tofalsefrom start. - Open
about:configand setdom.webgpu.enabledtotrue. - Open a JS console (i.e., via
F12), and evaluate the expressionnavigator.gpu. Observe that we get aGPUobject back, implying that the WebGPU API is available for usage. - Using the console again, evaluate the expression
navigator.gpu.requestAdapter(). Observe that we get aPromiserejection with the messageWebGPU is not enabled!, which is unexpected. See also the attachedactual.png.
| Reporter | ||
Comment 1•3 years ago
|
||
| Reporter | ||
Comment 2•3 years ago
|
||
| Reporter | ||
Comment 3•3 years ago
|
||
| Reporter | ||
Updated•3 years ago
|
| Reporter | ||
Updated•3 years ago
|
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 4•3 years ago
|
||
about:support's feature table still shows blocklisting, just not whether
the pref is set.
If different from default, dom.webgpu.enabled still shows up in about:support under
"Important Modified Prefs" like normal.
Also renames "gfx.webgpu.force-enabled" to "gfx.webgpu.ignore-blocklist"
to reflect its functionality.
Comment 6•3 years ago
|
||
| bugherder | ||
Updated•3 years ago
|
Description
•