Bug 228249 - WebKit is the only major browser engine what returns "about:blank" for Location.href in a closed window
Summary: WebKit is the only major browser engine what returns "about:blank" for Locati...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL: https://github.com/whatwg/html/issues...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-23 14:27 PDT by Chris Dumez
Modified: 2021-07-23 16:02 PDT (History)
0 users

See Also:


Attachments
Patch (6.47 KB, patch)
2021-07-23 14:30 PDT, Chris Dumez
ews-feeder: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.