Bug 231942

Summary: Origin of opaque blob: URLs ends up as empty string
Product: WebKit Reporter: Anne van Kesteren <annevk>
Component: DOMAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, cdumez, clopez, ews-watchlist, thorton, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Anne van Kesteren 2021-10-19 01:06:43 PDT
An opaque origin has to serialize as "null". It appears this doesn't happen in Safari: https://github.com/web-platform-tests/wpt/pull/31305. Noticed this while refactoring the specification to do away with cannot-be-a-base-URL in favor of a type: https://github.com/whatwg/url/pull/655.
Comment 1 Alex Christensen 2021-10-19 10:07:33 PDT
Created attachment 441747 [details]
Patch
Comment 2 EWS Watchlist 2021-10-19 10:08:24 PDT
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Comment 3 Alex Christensen 2021-10-19 10:15:00 PDT
Thanks, Anne!
Comment 4 EWS 2021-10-19 12:28:48 PDT
Committed r284478 (243237@main): <https://commits.webkit.org/243237@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 441747 [details].
Comment 5 Radar WebKit Bug Importer 2021-10-19 12:29:20 PDT
<rdar://problem/84427378>
Comment 6 Chris Dumez 2021-10-19 13:00:55 PDT
Committed r284483 (243241@main): <https://commits.webkit.org/243241@main>