mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Bug 1431095 - Change Content-Type-Options: nosniff allowed script MIME types to match the spec
This commit is contained in:
parent
83b729c6a1
commit
8f4e22e819
4 changed files with 10 additions and 23 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue