WebGPU: expose GPUObjectBase to worker (#39463)

Label attribute in several WebGPU object should be available to worker
as well.
[Firefox](https://searchfox.org/firefox-main/source/dom/webidl/WebGPU.webidl#10)
doesn't limit it to window either.

Testing: CTS [try
run](https://github.com/wusyong/servo/actions/runs/17942843000) from my
fork

Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
This commit is contained in:
Wu Yuwei 2025-09-24 13:10:56 +09:00 committed by GitHub
parent afd061e9b3
commit bb70c35a96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,7 +7,6 @@
// Source: WebGPU (https://gpuweb.github.io/gpuweb/)
// Direct source: https://github.com/w3c/webref/blob/curated/ed/idl/webgpu.idl
[Exposed=(Window)]
interface mixin GPUObjectBase {
attribute USVString label;
};