mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1678396 - Enable WebGPU uncaptured error r=webidl,smaug
No functional changes, just WebIDL. Differential Revision: https://phabricator.services.mozilla.com/D97642
This commit is contained in:
parent
1efdd4c8eb
commit
921110e00f
@ -131,7 +131,7 @@ class Device final : public DOMEventTargetHelper {
|
||||
already_AddRefed<RenderPipeline> CreateRenderPipeline(
|
||||
const dom::GPURenderPipelineDescriptor& aDesc);
|
||||
|
||||
// IMPL_EVENT_HANDLER(uncapturederror)
|
||||
IMPL_EVENT_HANDLER(uncapturederror)
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
|
@ -7,15 +7,13 @@
|
||||
* https://gpuweb.github.io/gpuweb/
|
||||
*/
|
||||
|
||||
[
|
||||
Pref="dom.webgpu.enabled",
|
||||
Exposed=Window,
|
||||
]
|
||||
interface GPUUncapturedErrorEvent : Event {
|
||||
constructor(DOMString type, GPUUncapturedErrorEventInit gpuUncapturedErrorEventInitDict);
|
||||
readonly attribute GPUError error;
|
||||
};
|
||||
|
||||
dictionary GPUUncapturedErrorEventInit : EventInit {
|
||||
required GPUError error;
|
||||
};
|
||||
|
||||
[Pref="dom.webgpu.enabled",
|
||||
Exposed=Window]
|
||||
interface GPUUncapturedErrorEvent: Event {
|
||||
constructor(DOMString type, GPUUncapturedErrorEventInit gpuUncapturedErrorEventInitDict);
|
||||
readonly attribute GPUError error;
|
||||
};
|
||||
|
@ -188,8 +188,8 @@ partial interface GPUDevice {
|
||||
//readonly attribute Promise<GPUDeviceLostInfo> lost;
|
||||
//void pushErrorScope(GPUErrorFilter filter);
|
||||
//Promise<GPUError?> popErrorScope();
|
||||
//[Exposed=Window]
|
||||
//attribute EventHandler onuncapturederror;
|
||||
[Exposed=Window]
|
||||
attribute EventHandler onuncapturederror;
|
||||
};
|
||||
|
||||
// ****************************************************************************
|
||||
|
@ -916,6 +916,7 @@ STATIC_ATOMS = [
|
||||
Atom("ontransitionend", "ontransitionend"),
|
||||
Atom("ontransitionrun", "ontransitionrun"),
|
||||
Atom("ontransitionstart", "ontransitionstart"),
|
||||
Atom("onuncapturederror", "onuncapturederror"),
|
||||
Atom("onunderflow", "onunderflow"),
|
||||
Atom("onunhandledrejection", "onunhandledrejection"),
|
||||
Atom("onunload", "onunload"),
|
||||
|
Loading…
Reference in New Issue
Block a user