Bug 1454708 [wpt PR 10509] - Fetch: MediaSource blob: URLs, a=testonly
authorAnne van Kesteren <annevk@annevk.nl>
Fri, 27 Apr 2018 20:44:02 +0000
changeset 472280 5044215d0c51adb531a02cd5fdb84dbe3cc630ad
parent 472279 e435b81bc12958b9ee32c2aefb9163f04e5d8302
child 472281 c9385158fbe9f6e15d7d169ef9c5b268cbda7fb2
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1454708, 10509
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1454708 [wpt PR 10509] - Fetch: MediaSource blob: URLs, a=testonly Automatic update from web-platform-testsFetch: MediaSource blob: URLs For https://github.com/whatwg/fetch/pull/708. -- wpt-commits: e2c839d70a30ce0a3816bc63601a99ccf65a1654 wpt-pr: 10509
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/fetch/api/basic/mediasource.window.js
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -327721,16 +327721,22 @@
     ]
    ],
    "fetch/api/basic/keepalive.html": [
     [
      "/fetch/api/basic/keepalive.html",
      {}
     ]
    ],
+   "fetch/api/basic/mediasource.window.js": [
+    [
+     "/fetch/api/basic/mediasource.window.html",
+     {}
+    ]
+   ],
    "fetch/api/basic/mode-no-cors-worker.html": [
     [
      "/fetch/api/basic/mode-no-cors-worker.html",
      {}
     ]
    ],
    "fetch/api/basic/mode-no-cors.html": [
     [
@@ -555420,16 +555426,20 @@
   "fetch/api/basic/integrity.js": [
    "59e8c5ebf0dfd2ab2432f28dcee5db82e9505cff",
    "support"
   ],
   "fetch/api/basic/keepalive.html": [
    "1ecdcb478b65b258e79242ae17af79ba903db412",
    "testharness"
   ],
+  "fetch/api/basic/mediasource.window.js": [
+   "5e2e35f820982002b967d7444507a2bfc0d3aa34",
+   "testharness"
+  ],
   "fetch/api/basic/mode-no-cors-worker.html": [
    "39992b8abf3ab30182dfbaa5816cc154a22ae0ad",
    "testharness"
   ],
   "fetch/api/basic/mode-no-cors.html": [
    "ff174cb1a76a63473028b72b3319602685689cb5",
    "testharness"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/fetch/api/basic/mediasource.window.js
@@ -0,0 +1,5 @@
+promise_test(t => {
+  const mediaSource = new MediaSource(),
+        mediaSourceURL = URL.createObjectURL(mediaSource);
+  return promise_rejects(t, new TypeError(), fetch(mediaSourceURL));
+}, "Cannot fetch blob: URL from a MediaSource");