[Safari 14]window.open with parameters will open in new window instead of new tab by default

In Safari 14, when we call window.open with parameters like

window.open("https://www.apple.com", "_blank", "noopener noreferrer"),

it will open the page in new window instead of new tab by default ("Open pages in tabs instead of windows" is set to Automatically).

While window.open without parameters like

window.open("https://www.apple.com", "_blank")

it will open in new tab.


And if we set "Open pages in tabs instead of windows" to Always, it will open in new tab.


Safari with old versions and other browsers are also opening page in new tab by default for this case.


So this should be a regression issue, please fix to keep the behavior consistent with window.open without parameters to open in new tab by default. Thanks.

MacBook Pro 16″, macOS 11.3

Posted on Aug 5, 2021 12:29 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

[Safari 14]window.open with parameters will open in new window instead of new tab by default

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.