Skip to content

Commit dc4d6f1

Browse files
committed
clarify the bahaviour of beforeunloaded prompts
The wording of the current entry implies to some that promots from beforeunloaded are always dismissed and thus the promot is in effect never shown and the user will have no chance to interact with it. This interpretation would lead it to be impossible to interact with them and test them - which seems to be the purpose of the webdriver spec, so this would imply that that interpretation is incorrect. This clarifies the wording to say that the promot is dismissed on *subsequent* navigations, thus if a prompt was shown and a navigation attempt was performed then it would be dismissed, however if the cause of the alter was a navigation then the promot will be shown so that the user can interact with it. fixes #1294
1 parent 90b179e commit dc4d6f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -9730,8 +9730,8 @@ <h2>User prompts</h2>
97309730

97319731
<p><a>User prompts</a> that are spawned
97329732
from <a><code>beforeunload</code></a> event handlers,
9733-
are <a>dismissed</a> implicitly upon <a>navigation</a>
9734-
or <a>close window</a>,
9733+
are <a>dismissed</a> implicitly upon a subsequent <a>navigation</a>
9734+
or a subsequent <a>close window</a>,
97359735
regardless of the defined <a>user prompt handler</a>.
97369736

97379737
<p>A <a>user prompt</a> has an associated <dfn>user prompt message</dfn>

0 commit comments

Comments
 (0)