Closed jgraham closed 1 week ago
https://github.com/whatwg/html/pull/10189 is the HTML side of this change. It also depends on landing https://github.com/w3c/webdriver/pull/1791
@jgraham as it looks like you missed to specify the steps for handling a user prompt.
@jgraham as it looks like you missed to specify the steps for handling a user prompt.
Please disregard this comment. I was searching for beforeunload
in the preview document but the paragraph here lists the prompt as prompt to unload steps
.
The Browser Testing and Tools Working Group just discussed Prompt Handler for beforeunload
.
@jgraham so to summarize we will move on with allowing "accept" in the default values or do we still want to completely decouple from classic and drop "accept" in the default configuration and for prompts where it does not make sense? I am not sure if the PR is already updated with the latest discussions? I will take another look if it is ready.
My take is that we should allow "accept" in the default configuration, but for file
it should act like cancel
unless we extend with some future way to provide a default path. We kind of already do that for alert
where dismiss
and accept
do the same thing.
But I'm also more or less OK with dropping accept
from the possible default values. However it does mean you basically always have to override beforeUnload
unless you actually want that to cancel navigations with unload prompts, at which point I think the default value isn't that useful at all.
Preview | Diff