Bug 259093
Summary: | REGRESSION (Safari 16.3): Passing "noopener" as third argument opens tabs into new window | ||
---|---|---|---|
Product: | WebKit | Reporter: | Erica <egucciar> |
Component: | WebKit Misc. | Assignee: | Remy Demarest <rdemarest> |
Status: | RESOLVED FIXED | ||
Severity: | Critical | CC: | ahmad.saleem792, ansh_shukla, ap, beidson, bfulgham, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 16 | ||
Hardware: | Mac (Apple Silicon) | ||
OS: | macOS 13 |
Erica
Given MDN documentation and prior behavior, the following function call shall open in a "new tab" if the browser setting is set to "automatically"
window.open(path, "_blank", "noopener=true");
Per MDN: "Note: Specifying any features in the windowFeatures parameter, other than noopener or noreferrer, also has the effect of requesting a popup."
"If popup is not enabled, and there are no window features declared, the new browsing context will be a tab."
Given this, the expectation is the above line of code should open in new tab. However it is opening in a new window. This is reproducible across multiple user environments.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Thank you for the report! Could you please clarify which versions of Safari this worked in, and which work incorrectly?
Erica
Thanks for triaging this, the version of current not working version of safari is Version 16.3 (18614.4.6.1.5). Per our product manager, this was previously working for him on Version 16.2 (18614.3.7.1.5). Thank you!
Radar WebKit Bug Importer
<rdar://problem/112086061>
Ahmad Saleem
Based on tags on WebKit GitHub for macOS:
https://github.com/WebKit/WebKit/compare/releases/Apple/Safari-16.2-macOS-13.1...releases/Apple/Safari-16.3-macOS-13.2.1
There are 200+ commits.
Just sharing above link for quick analysis by anyone in future.
Ahmad Saleem
(In reply to Ahmad Saleem from comment #4)
> Based on tags on WebKit GitHub for macOS:
>
> https://github.com/WebKit/WebKit/compare/releases/Apple/Safari-16.2-macOS-13.
> 1...releases/Apple/Safari-16.3-macOS-13.2.1
>
> There are 200+ commits.
>
> Just sharing above link for quick analysis by anyone in future.
Only this commit from above has any reference to 'pop-up' - https://bugs.webkit.org/show_bug.cgi?id=247585
Remy Demarest
Pull request: https://github.com/WebKit/WebKit/pull/16857
Remy Demarest
*** Bug 174388 has been marked as a duplicate of this bug. ***
Remy Demarest
*** Bug 174271 has been marked as a duplicate of this bug. ***
EWS
Committed 267354@main (301fe8a7cb26): <https://commits.webkit.org/267354@main>
Reviewed commits have been landed. Closing PR #16857 and removing active labels.
Brent Fulgham
We believe this issue is resolved in the current shipping releases of iOS 17.2 and macOS 14.2.