← Back to release summary

window.prompt() will not activate parent page

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

Summary

If a document in a background tab calls window.prompt() then the call to prompt() will return immediately, and no dialog will be shown to the user for that call to prompt(). If the tab is foremost (if it is the active tab in the front window), then the call will show a dialog. Specifically, this removes the ability to use window.prompt() to bring a tab to the front against the user’s will.

Standards & signals

Docs: http://bit.ly/project-oldspice

View on chromestatus.com