DescriptionStop sniffing 'audio/', 'video/', and 'text/csv' into script.
Currently, `<script src="whatever"></script>` will execute the resource
at `whatever` as long as it returns a non-`image/*` MIME-type (and doesn't
opt-in to additional protection by sending an `X-Content-Type-Options:
nosniff` header). This patch tightens that to exclude `text/csv` as well
as `audio/*` and `video/*` by default.
Spec: https://fetch.spec.whatwg.org/#should-response-to-request-be-blocked-due-to-mime-type?
Intent: https://groups.google.com/a/chromium.org/d/msg/blink-dev/AHsFvhHzh1o/GHj6QCdMAAAJ
Discussion: https://github.com/whatwg/fetch/issues/337
BUG=433049
Committed: https://crrev.com/14bc0a5f5b710feb11504db0432c3719a2216aaa
Cr-Commit-Position: refs/heads/master@{#416235}
Patch Set 1 #Patch Set 2 : UseCounter #Patch Set 3 : rebase #
Messages
Total messages: 18 (13 generated)
|