Skip to content

Commit

Permalink
clarify the bahaviour of beforeunloaded prompts
Browse files Browse the repository at this point in the history
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 w3c#1294
  • Loading branch information
jtnord committed Feb 22, 2021
1 parent 90b179e commit dc4d6f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9730,8 +9730,8 @@ <h2>User prompts</h2>

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

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

0 comments on commit dc4d6f1

Please sign in to comment.