diff --git a/content/browser/loader/cross_origin_read_blocking_explainer.md b/content/browser/loader/cross_origin_read_blocking_explainer.md index a1ec0161ecc78d..573fe072c5fb27 100644 --- a/content/browser/loader/cross_origin_read_blocking_explainer.md +++ b/content/browser/loader/cross_origin_read_blocking_explainer.md @@ -140,7 +140,7 @@ All other kinds of requests may be CORB-eligible. This includes: CSS' `background-image`, etc. - [script-like destinations](https://fetch.spec.whatwg.org/#request-destination-script-like) like ` + + + +

Header example

Paragraph body

+ diff --git a/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/resources/js-mislabeled-as-html-nosniff.js b/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/resources/js-mislabeled-as-html-nosniff.js new file mode 100644 index 00000000000000..a880a5bc724a85 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/resources/js-mislabeled-as-html-nosniff.js @@ -0,0 +1 @@ +window.has_executed_script = true; diff --git a/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/resources/js-mislabeled-as-html-nosniff.js.headers b/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/resources/js-mislabeled-as-html-nosniff.js.headers new file mode 100644 index 00000000000000..0f228f94ecb1bc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/resources/js-mislabeled-as-html-nosniff.js.headers @@ -0,0 +1,2 @@ +Content-Type: text/html +X-Content-Type-Options: nosniff diff --git a/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/resources/js-mislabeled-as-html.js b/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/resources/js-mislabeled-as-html.js new file mode 100644 index 00000000000000..a880a5bc724a85 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/resources/js-mislabeled-as-html.js @@ -0,0 +1 @@ +window.has_executed_script = true; diff --git a/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/resources/js-mislabeled-as-html.js.headers b/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/resources/js-mislabeled-as-html.js.headers new file mode 100644 index 00000000000000..156209f9c81ff7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/resources/js-mislabeled-as-html.js.headers @@ -0,0 +1 @@ +Content-Type: text/html diff --git a/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/script-html-correctly-labeled.tentative.sub.html b/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/script-html-correctly-labeled.tentative.sub.html new file mode 100644 index 00000000000000..76a8fadd335c5b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/script-html-correctly-labeled.tentative.sub.html @@ -0,0 +1,30 @@ + + + + + +
+ diff --git a/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/script-js-mislabeled-as-html-nosniff.sub.html b/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/script-js-mislabeled-as-html-nosniff.sub.html new file mode 100644 index 00000000000000..f155deff090e43 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/script-js-mislabeled-as-html-nosniff.sub.html @@ -0,0 +1,32 @@ + + + + + +
+ + + + + + + diff --git a/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/script-js-mislabeled-as-html.sub.html b/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/script-js-mislabeled-as-html.sub.html new file mode 100644 index 00000000000000..3a923e66356db1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/fetch/corb/script-js-mislabeled-as-html.sub.html @@ -0,0 +1,24 @@ + + + + + +
+ + + + + + + diff --git a/third_party/WebKit/LayoutTests/external/wpt/fetch/nosniff/importscripts.js b/third_party/WebKit/LayoutTests/external/wpt/fetch/nosniff/importscripts.js index d7b121316af797..18952805bb71bb 100644 --- a/third_party/WebKit/LayoutTests/external/wpt/fetch/nosniff/importscripts.js +++ b/third_party/WebKit/LayoutTests/external/wpt/fetch/nosniff/importscripts.js @@ -14,7 +14,7 @@ const get_url = (mime, outcome) => { return url } -[null, "", "x", "x/x"].forEach(function(mime) { +[null, "", "x", "x/x", "text/html", "text/json"].forEach(function(mime) { try { importScripts(get_url(mime)) } catch(e) { diff --git a/third_party/WebKit/LayoutTests/external/wpt/fetch/nosniff/script.html b/third_party/WebKit/LayoutTests/external/wpt/fetch/nosniff/script.html index aec5a0886f55ac..6532e3db62f2e0 100644 --- a/third_party/WebKit/LayoutTests/external/wpt/fetch/nosniff/script.html +++ b/third_party/WebKit/LayoutTests/external/wpt/fetch/nosniff/script.html @@ -4,7 +4,7 @@