Closed Bug 1830292 Opened 1 year ago Closed 1 year ago

SRI should accept base64url encoded integrity metadata and be liberal with padding

Categories

(Core :: DOM: Security, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: freddy, Assigned: freddy)

References

Details

(Whiteboard: [domsecurity-active], [wptsync upstream])

Attachments

(1 file, 1 obsolete file)

No description provided.
Assignee: nobody → fbraun
Status: NEW → ASSIGNED

Can we get more explanation? Are we violating the spec? Need Chrome or web compatibility even if we aren't? something else?

From the patch this looks like it adds support for base64url hashes and is forgiving when the base64 padding is the wrong length or missing.

Severity: -- → N/A
Priority: -- → P2
Whiteboard: [domsecurity-active]

This is from a conversation in the whatwg chat on matrix. Annevk told me that due to testing he found out Safari and Chrome support base64url and Firefox does not.

In lieu of a realistic way to deprecating support gracefully, I started looking at what it may take to align our implementations here instead.

Tests have shown that web pages use base64url encoded integrity
metadata when using SRI, as other browsers are already supporting it.
To align cross-browser behavior, we'll support base64url and base64
in parallel and update the tests from wpt at the same time.

Attachment #9330621 - Attachment is obsolete: true
Pushed by fbraun@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6a4d223b5f67 base64url parser in SRI r=tschuster,ckerschb
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/40166 for changes under testing/web-platform/tests
Whiteboard: [domsecurity-active] → [domsecurity-active], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: