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:
Dzmitry Malyshau 2020-11-20 12:57:45 +00:00
parent 1efdd4c8eb
commit 921110e00f
4 changed files with 11 additions and 12 deletions

View File

@ -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

View File

@ -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;
};

View File

@ -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;
};
// ****************************************************************************

View File

@ -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"),