Skip to content

Commit d2c4b9b

Browse files
anforowiczjgraham
authored andcommitted
Bug 1554304 [wpt PR 17006] - CORB should block event-stream, gzip and x-www-form-urlencoded., a=testonly
Automatic update from web-platform-tests CORB should block event-stream, gzip and x-www-form-urlencoded. This CL adds CORB coverage for: 1) text/event-stream, application/x-www-form-urlencoded, based on the code review discussion in a previous CL here: https://chromium-review.googlesource.com/c/chromium/src/+/1604244/4/services/network/cross_origin_read_blocking.cc#227 2) application/gzip, which wasn't mentioned explicitly in the CR discussion above, but which is ranked #212 in the spreadsheet mentioned in whatwg/fetch#860 (comment) and therefore probably should have been included in r659671 together with x-gzip (ranked #54) and zip (ranked #71). Bug: 802836 Change-Id: I8c10f900110a2cb471437a19425bfd5e38aed2fe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1628809 Reviewed-by: Charlie Reis <creis@chromium.org> Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Cr-Commit-Position: refs/heads/master@{#663824} -- wp5At-commits: 4308b47e147274f6702a0c1add77488fbc75a309 wpt-pr: 17006
1 parent 619d80c commit d2c4b9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testing/web-platform/tests/fetch/corb/script-resource-with-nonsniffable-types.tentative.sub.html

+3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,12 @@
5353
// Some mime types should be protected by CORB without any kind
5454
// of confirmation sniffing.
5555
protected_mime_types = [
56+
"application/gzip",
5657
"application/x-gzip",
5758
"application/x-protobuf",
59+
"application/x-www-form-urlencoded",
5860
"application/zip",
61+
"text/event-stream",
5962
// TODO(lukasza): https://crbug.com/944162: Add application/pdf and
6063
// text/csv to the list of content types tested here (after
6164
// kMimeHandlerViewInCrossProcessFrame gets enabled by default).

0 commit comments

Comments
 (0)