Closed
Bug 1837835
Opened 1 year ago
Closed 1 year ago
Firefox incorrectly allows overriding non-replaceable properties, e.g. with "navigator.gpu = {};"
Categories
(Core :: Graphics: WebGPU, defect, P3)
Tracking
()
RESOLVED
FIXED
117 Branch
Tracking | Status | |
---|---|---|
firefox117 | --- | fixed |
People
(Reporter: jujjyl, Assigned: ErichDonGubler)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Not sure if this is specifically a WebGPU IDL problem or a JS engine problem, but reporting to JS engine side at first, feel free to route if this is a WebGPU IDL issue.
STR:
- run in Firefox Nightly console:
navigator.gpu = {};
and then prompt navigator.gpu
in the console window to see what it prints out.
Observed: Firefox prints out
Object { }
Expected: Firefox prints out
GPU { }
that is, it should not be possible to assign over navigator.gpu
.
See https://github.com/gpuweb/gpuweb/issues/4150 for more details.
Reporter | ||
Updated•1 year ago
|
Type: task → defect
OS: Unspecified → All
Hardware: Unspecified → All
Version: unspecified → Firefox 114
Updated•1 year ago
|
Component: JavaScript Engine → Graphics: WebGPU
Comment 1•1 year ago
|
||
According to the latest spec, navigator.gpu
is not replaceable:
https://www.w3.org/TR/webgpu/#navigator-gpu
But out implementation is:
https://searchfox.org/mozilla-central/rev/b91e9bef5a6d6f7b549fbc9cba70cb4665ed3866/dom/webidl/WebGPU.webidl#72
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Assignee: nobody → egubler
Status: NEW → ASSIGNED
Updated•1 year ago
|
Attachment #9344927 -
Attachment description: Bug 1837835: fix(webgpu): remove `Replaceable` IDL attr. for `GPUProvider` r=#webgpu-reviewers → Bug 1837835: fix(webgpu): remove `Replaceable` IDL attr. for `NavigatorGPU` r=#webgpu-reviewers
Pushed by egubler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/82f323c35c8c fix(webgpu): remove `Replaceable` IDL attr. for `NavigatorGPU` r=webgpu-reviewers,webidl,saschanaz,jgilbert
Comment 4•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox117:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
Comment hidden (Intermittent Failures Robot) |
You need to log in
before you can comment on or make changes to this bug.
Description
•