testing/web-platform/meta/workers/importscripts_mime.tentative.any.js.ini
author Perry Jiang <perry@mozilla.com>
Mon, 29 Oct 2018 15:08:24 +0000
changeset 443441 82c8a3aae99cb0207639b1850b2ef46625a60ace
parent 435399 9aec55ea5cd737f8175b18d983e4c33fcffbbd12
permissions -rw-r--r--
Bug 1354577 - require ServiceWorkerGlobalScope.importScripts() to only accept JavaScript MIME types r=edenchuang - Make ServiceWorkerGlobalScope.importScripts() throw a NetworkError when receiving a bad (i.e. non-JavaScript) MIME type - Correct registration-tests-mime-types.js to expect TypeError when registering a service worker that calls importScripts() with a bad MIME type, per spec - Add WPT import-scripts-mime-types.https.html to test importScripts success/failure, depending on MIME type Depends on D6416 Differential Revision: https://phabricator.services.mozilla.com/D9886

[importscripts_mime.tentative.any.sharedworker.html]
  [importScripts() requires scripty MIME types: aaa/aaa is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: Text/html is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: zzz/zzz is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: application/octet-stream is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: text/potato is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: TEXT/HTML is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: potato/text is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: text/Html is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: TeXt/HtMl is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: text/html is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: application/xml is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: text/plain is blocked.]
    expected: FAIL


[importscripts_mime.tentative.any.worker.html]
  [importScripts() requires scripty MIME types: aaa/aaa is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: Text/html is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: zzz/zzz is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: application/octet-stream is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: text/potato is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: TEXT/HTML is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: potato/text is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: text/Html is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: TeXt/HtMl is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: text/html is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: application/xml is blocked.]
    expected: FAIL

  [importScripts() requires scripty MIME types: text/plain is blocked.]
    expected: FAIL