Bug 228249

Summary: WebKit is the only major browser engine what returns "about:blank" for Location.href in a closed window
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED WONTFIX    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/whatwg/html/issues/6899
Attachments:
Description Flags
Patch ews-feeder: commit-queue-

Description Chris Dumez 2021-07-23 14:27:07 PDT
WebKit is the only major browser engine what returns "about:blank" for Location.href in a closed window. Gecko returns the empty string and the property is completely undefined in Blink.

This seems to be causing failures on WPT tests like:
- https://wpt.live/html/cross-origin-opener-policy/resource-popup.https.html

Because the test expects that the URL becomes something else than "about:blank" after closing.

I filed https://github.com/whatwg/html/issues/6899 to clarify the expected behavior.
Comment 1 Chris Dumez 2021-07-23 14:30:11 PDT
Created attachment 434122 [details]
Patch
Comment 2 Chris Dumez 2021-07-23 15:27:35 PDT
Our behavior matches the spec. Let's see if we can get the test updated and other browsers to follow.