webdriver
webdriver copied to clipboard
User prompt section contains subjective text that seems unnecessary and condescending
https://w3c.github.io/webdriver/#user-prompts
implementations must act as if showing an unload prompt is likely to be annoying, deceptive, or pointless.
What's up with this language in the spec?
Plenty of applications have valid use cases for beforeUnload, like to prevent users from accidentally discarding unsaved data.
Seems to be quoting the html spc...
https://html.spec.whatwg.org/#steps-to-fire-beforeunload
showing an unload prompt is unlikely to be annoying, deceptive, or pointless,
Key difference is it says unlikely not likely