diff --git a/index.html b/index.html index 3187af5b..152b43cf 100644 --- a/index.html +++ b/index.html @@ -2304,8 +2304,7 @@
Let serialized user prompt handler be serialize the user prompt handler. -
If serialized user prompt handler is not null, set - a property on capabilities with the name +
Set a property on capabilities with the name
"unhandledPromptBehavior
", and the value serialized
user prompt handler.
@@ -10481,8 +10480,11 @@
This is to avoid [[WebDriver-BiDi]] monkey-patching the current spec. +
Let is string value be false. +
If value is a string set value to
- the map «["default
" → value]».
+ the map «["fallbackDefault
"
+ → value]» and set is string value to true.
If value is not a map return error with error code invalid argument. @@ -10492,9 +10494,9 @@
For each prompt type → handler in value:
If valid prompt types does - not [=map/contain=] prompt type return error - with error code invalid argument. +
If is string value is false and valid prompt + types does not [=map/contain=] prompt type + return error with error code invalid argument.
If known prompt handlers does not contain an entry with handler key handler return error @@ -10545,11 +10547,7 @@
If the requested prompt handler's [=prompt handler configuration/handler=] is not equal to the user prompt handler's [=prompt handler - configuration/handler=], or the requested prompt - handler's [=prompt handler configuration/notify=] - is not equal to the user prompt - handler's [=prompt handler configuration/handler=], - return false. + configuration/handler=], return false.
This does not check the requested prompt +handler's [=prompt handler configuration/notify=] matches +the [=prompt handler configuration/handler=], because the [=prompt +handler configuration/notify=] component only affects the [=HTTP +session=], if any. +
To update the user prompt handler given requested prompt handler:
To serialize the user prompt handler:
If the user prompt handler is null, return null. +
If the user prompt handler is null, return
+ "dismiss and notify
".
If the user prompt handler has [=map/size=] 1,
and user prompt handler [=list/contains=]
- "default
", return the result of serialize a prompt
+ "fallbackDefault
", return the result of serialize a prompt
handler configuration with user prompt
- handler["default
"].
+ handler["fallbackDefault
"].
Let serialized be an empty map. @@ -10621,12 +10626,15 @@
If handlers contains type return handlers[type]. +
If handlers contains "default
"
+ return handlers["default
"].
+
If type is "beforeUnload
", return a
prompt handler configuration with [=prompt
handler configuration/handler=] "accept
"
and [=prompt handler configuration/notify=] false.
-
If handlers contains "default
"
+
If handlers contains "fallbackDefault
"
return handlers["default
"].
Return a prompt handler