-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a few cases to preload SRI #33326
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks! I want to reach a consensus on whatwg/fetch#1418 before merging. |
See whatwg/html#7655 When loading video from multiple opaque origins (by a middleman service-worker), video loading should fail rather than be alllowed and taint the canvas. That's because some of the video responses may contain metadata such as duration that would leak to the subsequent requests. See whatwg/html#2814 (comment) for further details. This change makes the test case pass in all browsers.
SRIPreloadTest( | ||
true, | ||
false, | ||
`Same-origin ${destination} with non-matching digest reuses preload with no digest but fails.`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"does not reuse preload"? (as Line 350 is "2")
sorry for delay, LGTM (with a minor comment) |
These two cases don't show the same results across browsers.
Note that in webkit most of the tests in this file currently fail, WebKit does not perform SRI matching on preload/consume.
The test results in this PR match chromium, but they are not necessarily "correct".