Bug 1402784 - Request.destination audioworklet WPT, r=annevk
authorAndrea Marchesini <amarchesini@mozilla.com>
Mon, 23 Mar 2020 11:32:46 +0000
changeset 520065 2ca9d49fdbf9e8499deba1b6a0a66ea72926d446
parent 520064 367f64f2dd1bc9db87f2748e656828dfd5bf7667
child 520066 437249143591b1e434b2a02a24734abd6f66630a
push id110838
push useramarchesini@mozilla.com
push dateMon, 23 Mar 2020 11:33:55 +0000
treeherderautoland@2ca9d49fdbf9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersannevk
bugs1402784
milestone76.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 1402784 - Request.destination audioworklet WPT, r=annevk Differential Revision: https://phabricator.services.mozilla.com/D67107
testing/web-platform/meta/fetch/api/request/destination/fetch-destination.https.html.ini
testing/web-platform/meta/worklets/audio-worklet-csp.https.html.ini
testing/web-platform/tests/fetch/api/request/destination/fetch-destination.https.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/fetch/api/request/destination/fetch-destination.https.html.ini
@@ -0,0 +1,3 @@
+[fetch-destination.https.html]
+  [AudioWorklet module fetches with a "audioworklet" Request.destination]
+    expected: FAIL
--- a/testing/web-platform/meta/worklets/audio-worklet-csp.https.html.ini
+++ b/testing/web-platform/meta/worklets/audio-worklet-csp.https.html.ini
@@ -6,26 +6,28 @@
 
   [A same-origin worklet importing a remote-origin script should not be blocked by the worker-src directive because worklets obey the script-src directive.]
     expected: FAIL
 
   [A remote-origin worklet importing a remote-origin script should not be blocked because the script-src * directive allows it.]
     expected: FAIL
 
   [A remote-origin-redirected worklet should be blocked by the script-src 'self' directive.]
-    expected: FAIL
+    expected:
+      if release_or_beta: FAIL
 
   [A remote-origin worklet importing a remote-origin script should not be blocked by the worker-src directive because worklets obey the script-src directive.]
     expected: FAIL
 
   [A same-origin worklet importing a remote-origin script should not be blocked because the script-src * directive allows it.]
     expected: FAIL
 
   [A remote-origin worklet should be blocked by the script-src 'self' directive.]
-    expected: FAIL
+    expected:
+      if release_or_beta: FAIL
 
   [A same-origin worklet importing a remote-origin-redirected script should not be blocked because the script-src * directive allows it.]
     expected: FAIL
 
   [A same-origin worklet importing a remote-origin script should not be blocked because the script-src directive specifying the origin allows it.]
     expected: FAIL
 
   [A same-origin worklet importing a remote-origin-redirected script should not be blocked because the script-src directive specifying the origin allows it.]
--- a/testing/web-platform/tests/fetch/api/request/destination/fetch-destination.https.html
+++ b/testing/web-platform/tests/fetch/api/request/destination/fetch-destination.https.html
@@ -165,16 +165,23 @@ promise_test(async t => {
       node.onerror = reject;
       node.src = "dummy?dest=script";
       frame.contentWindow.document.body.appendChild(node);
   }).catch(() => {
       assert_unreached("Fetch errored.");
   });
 }, 'HTMLScriptElement fetches with a "script" Request.destination');
 
+// audioworklet destination
+//////////////////////
+promise_test(async t => {
+  let audioContext = new frame.contentWindow.AudioContext();
+  await audioContext.audioWorklet.addModule("dummy?dest=audioworklet");
+}, 'AudioWorklet module fetches with a "audioworklet" Request.destination');
+
 // Style destination
 ////////////////////
 
 // HTMLLinkElement with rel=stylesheet - style destination
 promise_test(async t => {
   await new Promise((resolve, reject) => {
       let node = frame.contentWindow.document.createElement("link");
       node.rel = "stylesheet";