Bug 258479 - Opener should not be set on navigations via window.open(..., "_self")
Summary: Opener should not be set on navigations via window.open(..., "_self")
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: pascoe@apple.com
URL:
Keywords: BrowserCompat, InRadar, WPTImpact
Depends on:
Blocks:
 
Reported: 2023-06-23 13:13 PDT by pascoe@apple.com
Modified: 2023-06-28 11:34 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pascoe@apple.com 2023-06-23 13:13:13 PDT
We currently don't implement the HTML spec with respect to setting the opener exactly.
According to the spec, whenever name is "_self" we do not create a new top level traversable,
which means we do not follow step 8.8 which creates a new top-level traversable with an opener.
Whenever the currentNavigable is selected in step 4, there is no step to set an opener. In practice,
both Blink and Gecko do not set opener on window.open(..., "_self").
Comment 1 Radar WebKit Bug Importer 2023-06-23 13:13:49 PDT
<rdar://problem/111231401>
Comment 2 pascoe@apple.com 2023-06-23 13:15:33 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15262