w3c / webdriver

Remote control interface that enables introspection and control of user agents.
https://w3c.github.io/webdriver/
Other
684 stars 195 forks source link

User prompt section contains subjective text that seems unnecessary and condescending #1838

Open lukeis opened 2 months ago

lukeis commented 2 months ago

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.

lukeis commented 2 months ago

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