Bug 263759
| Summary: | window.open with parameters will open in new window instead of new tab by default | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | 524531654 |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | mike |
| Priority: | P2 | ||
| Version: | Safari 16 | ||
| Hardware: | Unspecified | ||
| OS: | All | ||
524531654
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
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?