diff --git a/source b/source index 809aeb97590..8a964867f11 100644 --- a/source +++ b/source @@ -100056,24 +100056,32 @@ location.href = '#foo';
Set unloadPromptShown to true.
Invoke WebDriver BiDi user prompt opened with document's
- relevant global object, "beforeunload
", and "".
Let userPromptHandler be the result of WebDriver BiDi user prompt
+ opened with document's relevant global object,
+ "beforeunload
", and "".
Ask the user to confirm that they wish to unload the document, and pause while - waiting for the user's response.
+If userPromptHandler is "dismiss
", set
+ unloadPromptCanceled to true.
-
The message shown to the user is not customizable, but instead determined by
- the user agent. In particular, the actual value of the returnValue
attribute is ignored.
If userPromptHandler is "none
":
If the user did not confirm the page navigation, set unloadPromptCanceled to - true.
Ask the user to confirm that they wish to unload the document, and pause while + waiting for the user's response.
+ +The message shown to the user is not customizable, but instead determined by
+ the user agent. In particular, the actual value of the returnValue
attribute is ignored.
If the user did not confirm the page navigation, set unloadPromptCanceled to + true.
Invoke WebDriver BiDi user prompt closed with document's - relevant global object and true if unloadPromptCanceled is false or - false otherwise.
beforeunload
", and true
+ if unloadPromptCanceled is false or false otherwise.
Set message to the result of optionally truncating message.
Show message to the user, treating U+000A LF as a line break.
Let userPromptHandler be WebDriver BiDi user prompt opened with
+ this, "alert
", and message.
Invoke WebDriver BiDi user prompt opened with this,
- "alert
", and message.
If userPromptHandler is "none
":
Show message to the user, treating U+000A LF as a line break.
Optionally, pause while waiting for the user to acknowledge the - message.
Optionally, pause while waiting for the user to acknowledge the + message.
Invoke WebDriver BiDi user prompt closed with this - and true.
Invoke WebDriver BiDi user prompt closed with this,
+ "alert
", and true.
This method is defined using two overloads, instead of using an @@ -114068,16 +114080,27 @@ function sendData(data) {
Show message to the user, treating U+000A LF as a line break, and ask the user to respond with a positive or negative response.
Invoke WebDriver BiDi user prompt opened with this,
- "confirm
", and message.
Let userPromptHandler be WebDriver BiDi user prompt opened with
+ this, "confirm
", and message.
Pause until the user responds either positively or negatively.
Let accepted be false.
If userPromptHandler is "none
":
Pause until the user responds either positively or negatively.
If the user responded positively set accepted to true
If userPromptHandler is "accept
" set accepted to
+ true.
Invoke WebDriver BiDi user prompt closed with this, - and true if the user responded positively or false otherwise.
confirm
", and accepted.
- If the user responded positively, return true; otherwise, the user responded negatively: - return false.
Return accepted.
The prompt(message,
@@ -114100,18 +114123,29 @@ function sendData(data) {
to either respond with a string value or abort. The response must be defaulted to the value given
by default.
Invoke WebDriver BiDi user prompt opened with this,
- "prompt
", message, and default.
Let userPromptHandler be WebDriver BiDi user prompt opened with
+ this, "prompt
" and message.
Pause while waiting for the user's response.
Let result be null.
Let result be null if the user aborts, or otherwise the string that the user - responded with.
If userPromptHandler is "none
":
Pause while waiting for the user's response.
If the user did not abort, set result to the string that the user + responded with.
Otherwise if userPromptHandler is "accept
", set result
+ to the emtpy string.
Invoke WebDriver BiDi user prompt closed with this, - false if result is null or true otherwise, and result.
prompt
", false if result is null or true otherwise,
+ and result.
- Return result.
Return result.
To optionally truncate a simple dialog string s, return either