mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 1865874 - Enable by default strict MIME type checks for worker-imported scripts, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D194252
This commit is contained in:
parent
d2164ebef0
commit
ceca5d67cf
@ -3881,7 +3881,7 @@
|
||||
|
||||
- name: dom.workers.importScripts.enforceStrictMimeType
|
||||
type: RelaxedAtomicBool
|
||||
value: @IS_EARLY_BETA_OR_EARLIER@
|
||||
value: true
|
||||
mirror: always
|
||||
|
||||
# Is support for modules (new Worker(..., {type: "module"})) enabled for workers?
|
||||
|
@ -1,290 +0,0 @@
|
||||
[importscripts_mime_local.any.worker.html]
|
||||
[importScripts() requires scripty MIME types for data: URLs: image/png is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/csv is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: video/mpeg is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/html is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/plain is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: application/xml is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: application/octet-stream is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/potato is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: potato/text is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: aaa/aaa is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: zzz/zzz is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/csv; charset=utf-8 is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/csv;charset=utf-8 is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/csv;bla;bla is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: Text/html is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/Html is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: TeXt/HtMl is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: TEXT/HTML is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: image/png is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/csv is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: video/mpeg is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/html is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/plain is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: application/xml is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: application/octet-stream is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/potato is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: potato/text is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: aaa/aaa is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: zzz/zzz is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/csv; charset=utf-8 is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/csv;charset=utf-8 is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/csv;bla;bla is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: Text/html is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/Html is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: TeXt/HtMl is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: TEXT/HTML is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
|
||||
[importscripts_mime_local.any.sharedworker.html]
|
||||
[importScripts() requires scripty MIME types for data: URLs: image/png is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/csv is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: video/mpeg is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/html is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/plain is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: application/xml is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: application/octet-stream is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/potato is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: potato/text is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: aaa/aaa is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: zzz/zzz is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/csv; charset=utf-8 is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/csv;charset=utf-8 is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/csv;bla;bla is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: Text/html is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: text/Html is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: TeXt/HtMl is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for data: URLs: TEXT/HTML is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: image/png is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/csv is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: video/mpeg is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/html is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/plain is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: application/xml is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: application/octet-stream is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/potato is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: potato/text is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: aaa/aaa is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: zzz/zzz is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/csv; charset=utf-8 is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/csv;charset=utf-8 is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/csv;bla;bla is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: Text/html is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: text/Html is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: TeXt/HtMl is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
||||
|
||||
[importScripts() requires scripty MIME types for blob: URLs: TEXT/HTML is blocked.]
|
||||
expected:
|
||||
if not early_beta_or_earlier: FAIL
|
Loading…
Reference in New Issue
Block a user