Require user gesture for beforeunload dialogs

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.)

Specification

Established standard

Status in Chromium

Enabled by default (launch bug) in:

  • Chrome for desktop release 60
  • Chrome for Android release 60
  • Android WebView release 60
  • Opera release 47
  • Opera for Android release 47

Consensus & Standardization

Owner

Last updated on 2017-04-06