Bug 242587 - [Web share] Disallow sharing data: URLs
Summary: [Web share] Disallow sharing data: URLs
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Marcos Caceres
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-07-10 22:22 PDT by Marcos Caceres
Modified: 2022-07-12 16:14 PDT (History)
1 user (show)

See Also:


Attachments

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