Potentially trustworthy data: urls
- Category
- Network / Connectivity
- Type
- No developer-visible change
- Status
- No active development (Chrome No active development)
- Intent stage
- Prepare to ship
WPT details: https://github.com/web-platform-tests/wpt/pull/21146 https://github.com/web-platform-tests/wpt/pull/21781 More test coverage is likely needed since the Chromium CL does not change the behavior of any of the above tests.
Summary
It is often necessary to evaluate whether a URL is secure in order to only enable certain features when minimum standards of authentication and confidentiality are met. For that purpose, web standards rely on the definition of "potentially trustworthy URL", which includes URLs with the "data" scheme in the latest version of the Secure Contexts specification. Blink already treats data: URLs as potentially trustworthy in some cases. The goal is to generalize this to all cases.
Motivation
- Ensure consistent behavior of "data:" URLs for security purpose within Blink. - Improve web compat by following the standard.
Standards & signals
- Specification: https://w3c.github.io/webappsec-secure-contexts/#is-url-trustworthy
- Firefox: Positive
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1119740
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=potentially-trustworthy-data-urls
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Potentially%20trustworthy%20data%3A%20urls
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Potentially%20trustworthy%20data%3A%20urls
- Baseline status: https://webstatus.dev/?q=Potentially%20trustworthy%20data%3A%20urls
Docs: https://github.com/w3c/webappsec-secure-contexts/issues/69 https://chromium-review.googlesource.com/c/chromium/src/+/2563683