Bug 242587

Summary: [Web share] Disallow sharing data: URLs
Product: WebKit Reporter: Marcos Caceres <marcosc>
Component: New BugsAssignee: Marcos Caceres <marcosc>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Description Marcos Caceres 2022-07-10 22:22:03 PDT
The Web Share spec disallows sharing data: URLs, but WebKit allows it.

We should disallow sharing data: URL.

Steps to reproduce:

 1. Go to https://wpt.live/web-share/canShare.https.html

Expected:

The test that checks if data: URL is allowed should pass (meaning it's not allowed!).

Actual: 

The test fails.
Comment 1 Marcos Caceres 2022-07-10 23:00:35 PDT
Pull request: https://github.com/WebKit/WebKit/pull/2286
Comment 2 EWS 2022-07-12 16:13:12 PDT
Committed 252398@main (2465fcd9300b): <https://commits.webkit.org/252398@main>

Reviewed commits have been landed. Closing PR #2286 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-07-12 16:14:15 PDT
<rdar://problem/96916263>