← Back to release summary

Require user gesture for beforeunload dialogs

Category
JavaScript
Type
New or changed feature
Status
Browser Intervention (Chrome 60)
Intent stage
None

Summary

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

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/API/BeforeUnloadEvent

View on chromestatus.com