Closed Bug 1956731 Opened 1 year ago Closed 1 year ago

Implement forgiving parsing for require-trusted-types-for directive

Categories

(Core :: DOM: Security, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: fwang, Assigned: fwang)

References

()

Details

Attachments

(1 file)

This is the same as bug 1935434, but for require-trusted-types.

Luke reported https://github.com/w3c/trusted-types/issues/580 and is concerned this could be a compat issue.

The ABNF is https://w3c.github.io/trusted-types/dist/spec/#require-trusted-types-for-csp-directive

Also our code assumes there is only one trusted-types-sink-group-keyword so we cannot repeat things like in 'script' 'script'

Summary: Discard malformed required-trusted-types policy name in CSP directive instead of ignoring the whole CSP directive → Discard malformed trusted-types-sink-group-keyword in CSP directive instead of ignoring the whole CSP directive
Summary: Discard malformed trusted-types-sink-group-keyword in CSP directive instead of ignoring the whole CSP directive → Implement forgiving parsing for require-trusted-types-for directive
Attachment #9474955 - Attachment description: WIP: Bug 1956731 - Discard malformed trusted-types-sink-group-keyword in CSP directive instead of ignoring the whole CSP directive. r=smaug → Bug 1956731 - Implement forgiving parsing for require-trusted-types-for directive. r=smaug
Blocks: 1901492
Pushed by fwang@igalia.com: https://hg.mozilla.org/integration/autoland/rev/2882613aed1c Implement forgiving parsing for require-trusted-types-for directive. r=smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/51697 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
Upstream PR merged by moz-wptsync-bot
Blocks: 1916956
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: