summaryrefslogtreecommitdiffstats
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
commit3968897fb4b227b1a634700cbeaea715e58ac543 (patch)
treef07bc2a6ec5b759ba56180200070bc3485e52dee /testing
parentdc8aad9b9dc6983bb88aa586f34d9db007840eb8 (diff)
downloadUXP-3968897fb4b227b1a634700cbeaea715e58ac543.tar
UXP-3968897fb4b227b1a634700cbeaea715e58ac543.tar.gz
UXP-3968897fb4b227b1a634700cbeaea715e58ac543.tar.lz
UXP-3968897fb4b227b1a634700cbeaea715e58ac543.tar.xz
UXP-3968897fb4b227b1a634700cbeaea715e58ac543.zip
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 667f3c99a..c5c5167f5 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.