From 08870547b98870cd6dc02547eb2d07513c505352 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Wed, 28 Aug 2024 10:57:05 -0700 Subject: [PATCH] Add required IDL for new error codes --- index.bs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/index.bs b/index.bs index ab827da0b..518287259 100644 --- a/index.bs +++ b/index.bs @@ -3763,13 +3763,38 @@ please see [[#sctn-create-request-exceptions]] and [[#sctn-get-request-exception [Exposed=Window, Serializable] interface UserCancellationError : DOMException { + constructor(optional DOMString message = ""); }; + + +The new UserCancellationError(|message|) constructor steps are: + +1. Set [=this=]'s {{DOMException/name}} to `"UserCancellationError"`. +1. Set [=this=]'s {{DOMException/message}} to `message`. + +{{UserCancellationError}} objects are [=serializable objects=]. + +Their [=serialization steps=], given |value| and |serialized|, are to run the {{DOMException}} [=serialization steps=] given |value| and |serialized|. + +Their [=deserialization steps=], given |serialized| and |value|, are to run the {{DOMException}} [=deserialization steps=] given |serialized| and |value|. + [Exposed=Window, Serializable] interface UserVerificationError : DOMException { + constructor(optional DOMString message = ""); }; +The new UserVerificationError(|message|) constructor steps are: + +1. Set [=this=]'s {{DOMException/name}} to `"UserVerificationError"`. +1. Set [=this=]'s {{DOMException/message}} to `message`. + +{{UserVerificationError}} objects are [=serializable objects=]. + +Their [=serialization steps=], given |value| and |serialized|, are to run the {{DOMException}} [=serialization steps=] given |value| and |serialized|. + +Their [=deserialization steps=], given |serialized| and |value|, are to run the {{DOMException}} [=deserialization steps=] given |serialized| and |value|. ## WebAuthn Extensions Inputs and Outputs ## {#sctn-extensions-inputs-outputs}