summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-03 19:50:55 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-03 19:50:55 +0200
commit8d9ddd5f5b97aec063862e4575a77f7a05201785 (patch)
treef07bc2a6ec5b759ba56180200070bc3485e52dee /testing
parent626b9cb6c87fc4cf8f42d6c6671ae1da92d5d50d (diff)
downloaduxp-8d9ddd5f5b97aec063862e4575a77f7a05201785.tar.gz
Bug 1431095 - Change Content-Type-Options: nosniff allowed script MIME types to match the spec
Diffstat (limited to 'testing')
-rw-r--r--testing/web-platform/tests/fetch/nosniff/script.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/web-platform/tests/fetch/nosniff/script.html b/testing/web-platform/tests/fetch/nosniff/script.html
index 667f3c99a6..c5c5167f57 100644
--- a/testing/web-platform/tests/fetch/nosniff/script.html
+++ b/testing/web-platform/tests/fetch/nosniff/script.html
@@ -4,8 +4,8 @@
<script>
var log = function() {}, // see comment below
p = function() {}, // see comment below
- fails = ["", "?type=", "?type=x", "?type=x/x"],
- passes = ["?type=text/javascript", "?type=text/ecmascript", "?type=text/ecmascript;blah"]
+ fails = ["", "?type=", "?type=x", "?type=x/x", "?type=text/json"],
+ passes = ["?type=text/javascript", "?type=text/ecmascript", "?type=text/ecmascript;blah", "?type=text/javascript1.0"]
// Ideally we'd also check whether the scripts in fact execute, but that would involve
// timers and might get a bit racy without cross-browser support for the execute events.