Bug 258479

Summary: Opener should not be set on navigations via window.open(..., "_self")
Product: WebKit Reporter: pascoe <pascoe>
Component: WebCore Misc.Assignee: pascoe <pascoe>
Status: RESOLVED WONTFIX    
Severity: Normal CC: karlcow, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar, WPTImpact
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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