← Back to release summary

window.alert() will not activate parent page

Category
JavaScript
Type
New or changed feature
Status
Removed (Chrome 64)
Intent stage
None

Summary

If a document in a background tab calls window.alert() then the call to alert() will return immediately; the dialog will be shown to the user when they switch to the tab. A UI indicator will be set so the user is aware of the pending alert dialog. This removes the ability to use window.alert() to bring a tab to the front against the user’s will.

Standards & signals

View on chromestatus.com