RESOLVED INVALID263759
window.open with parameters will open in new window instead of new tab by default
https://bugs.webkit.org/show_bug.cgi?id=263759
Summary window.open with parameters will open in new window instead of new tab by def...
524531654
Reported 2023-10-26 20:14:39 PDT
window.open("https://www.apple.com", "_blank", "noopener, noreferrer") is supposed to open a tab because the target we provided is the _blank. However, it will only open the tab when there is no third parameter. In Firefox and Chrome, a tab by default is opened even with the third parameter provided. And it seemed like the older version of Safari also followed the same behavior. The Safari version I'm using is 16.6 (18615.3.12.11.2). You can reproduce it by trying window.open("https://www.apple.com", "_blank", "noopener, noreferrer") and window.open("https://www.apple.com", "_blank") respectively and the former one will open a new window. P.S. My "Open pages in tabs instead of windows" is set to "Automatically". According to https://support.apple.com/guide/safari/use-tabs-for-webpages-sfri11576/mac, a tab instead of a window is supposed to be opened.
Attachments
Alexey Proskuryakov
Comment 1 2023-10-30 13:46:22 PDT
Thank you for the report. Since this is a Safari feature, could you please file it at https://feedbackassistant.apple.com for Apple to investigate?
Note You need to log in before you can comment on or make changes to this bug.