The beforeunload dialog will only be shown if the frame attempting to display it has received a user gesture or user interaction (or if any embedded frame has received such a gesture). (There will be no change to the dispatch of the beforeunload event, just a change to whether the dialog is shown.)
Documentation
Specification
Status in Chromium
Browser Intervention (tracking bug) in:
- Chrome for desktop release 60
- Chrome for Android release 60
- Android WebView release 60
Consensus & Standardization
After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.
- Shipped/Shipping
- No signal
- In development
- No signals
Owner
Last updated on 2020-11-09