Skip to content

Commit 57f06d0

Browse files
anforowiczchromium-wpt-export-bot
authored andcommitted
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
1 parent 31e7108 commit 57f06d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)