Import WPT fetch destination tests
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Jun 2018 05:47:24 +0000 (05:47 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Jun 2018 05:47:24 +0000 (05:47 +0000)
https://bugs.webkit.org/show_bug.cgi?id=186984

Reviewed by Chris Dumez.

LayoutTests/imported/w3c:

* web-platform-tests/fetch/api/request/destination/fetch-destination-iframe.https-expected.txt: Added.
* web-platform-tests/fetch/api/request/destination/fetch-destination-iframe.https.html: Added.
* web-platform-tests/fetch/api/request/destination/fetch-destination-no-load-event.https.html: Added.
* web-platform-tests/fetch/api/request/destination/fetch-destination-worker.https-expected.txt: Added.
* web-platform-tests/fetch/api/request/destination/fetch-destination-worker.https.html: Added.
* web-platform-tests/fetch/api/request/destination/fetch-destination.https.html: Added.
* web-platform-tests/fetch/api/request/destination/resources/dummy: Added.
* web-platform-tests/fetch/api/request/destination/resources/dummy.es: Added.
* web-platform-tests/fetch/api/request/destination/resources/dummy.es.headers: Added.
* web-platform-tests/fetch/api/request/destination/resources/dummy.html: Added.
* web-platform-tests/fetch/api/request/destination/resources/dummy.png: Added.
* web-platform-tests/fetch/api/request/destination/resources/dummy.ttf: Added.
* web-platform-tests/fetch/api/request/destination/resources/dummy_audio.mp3: Added.
* web-platform-tests/fetch/api/request/destination/resources/dummy_audio.oga: Added.
* web-platform-tests/fetch/api/request/destination/resources/dummy_video.mp4: Added.
* web-platform-tests/fetch/api/request/destination/resources/dummy_video.ogv: Added.
* web-platform-tests/fetch/api/request/destination/resources/empty.https.html: Added.
* web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker-iframe.js: Added.
(event.request.url.includes.):
(event.request.url.includes):
* web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker-no-load-event.js: Added.
(event.request.url.includes):
* web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker.js: Added.
(event.request.url.includes):
* web-platform-tests/fetch/api/request/destination/resources/importer.js: Added.
* web-platform-tests/fetch/api/request/destination/resources/w3c-import.log: Added.
* web-platform-tests/fetch/api/request/destination/w3c-import.log: Added.

LayoutTests:

Skipping tests for WK1 since they use service worker.

* TestExpectations: Skipping timing out tests.
* platform/ios-wk1/TestExpectations:
* platform/mac-wk1/TestExpectations:
* platform/win/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233191 268f45cc-cd09-0410-ab3c-d52691b4dbfc

29 files changed:
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-iframe.https-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-iframe.https.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-no-load-event.https.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-worker.https-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-worker.https.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination.https.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.es [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.es.headers [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.png [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.ttf [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_audio.mp3 [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_audio.oga [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_video.mp4 [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_video.ogv [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/empty.https.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker-iframe.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker-no-load-event.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/importer.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/w3c-import.log [new file with mode: 0644]
LayoutTests/platform/ios-wk1/TestExpectations
LayoutTests/platform/mac-wk1/TestExpectations
LayoutTests/platform/win/TestExpectations

index 0b77ba5..c53f6fc 100644 (file)
@@ -1,3 +1,17 @@
+2018-06-25  Youenn Fablet  <youenn@apple.com>
+
+        Import WPT fetch destination tests
+        https://bugs.webkit.org/show_bug.cgi?id=186984
+
+        Reviewed by Chris Dumez.
+
+        Skipping tests for WK1 since they use service worker.
+
+        * TestExpectations: Skipping timing out tests.
+        * platform/ios-wk1/TestExpectations:
+        * platform/mac-wk1/TestExpectations:
+        * platform/win/TestExpectations:
+
 2018-06-25  David Fenton  <david_fenton@apple.com>
 
         LayoutTest imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/successes_RSASSA-PKCS1-v1_5.https.any.worker.html is flaky.
index 09410fa..b390f9a 100644 (file)
@@ -337,6 +337,10 @@ webkit.org/b/180240 imported/w3c/web-platform-tests/resource-timing/single-entry
 imported/w3c/web-platform-tests/fetch/api/abort/general.any.html [ Skip ]
 imported/w3c/web-platform-tests/fetch/api/abort/general.any.worker.html [ Skip ]
 
+# These tests time out
+imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-no-load-event.https.html [ Skip ]
+imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination.https.html [ Skip ]
+
 # Not supported
 imported/w3c/web-platform-tests/background-fetch [ Skip ]
 
index 0b72268..8e493c1 100644 (file)
@@ -1,5 +1,40 @@
 2018-06-25  Youenn Fablet  <youenn@apple.com>
 
+        Import WPT fetch destination tests
+        https://bugs.webkit.org/show_bug.cgi?id=186984
+
+        Reviewed by Chris Dumez.
+
+        * web-platform-tests/fetch/api/request/destination/fetch-destination-iframe.https-expected.txt: Added.
+        * web-platform-tests/fetch/api/request/destination/fetch-destination-iframe.https.html: Added.
+        * web-platform-tests/fetch/api/request/destination/fetch-destination-no-load-event.https.html: Added.
+        * web-platform-tests/fetch/api/request/destination/fetch-destination-worker.https-expected.txt: Added.
+        * web-platform-tests/fetch/api/request/destination/fetch-destination-worker.https.html: Added.
+        * web-platform-tests/fetch/api/request/destination/fetch-destination.https.html: Added.
+        * web-platform-tests/fetch/api/request/destination/resources/dummy: Added.
+        * web-platform-tests/fetch/api/request/destination/resources/dummy.es: Added.
+        * web-platform-tests/fetch/api/request/destination/resources/dummy.es.headers: Added.
+        * web-platform-tests/fetch/api/request/destination/resources/dummy.html: Added.
+        * web-platform-tests/fetch/api/request/destination/resources/dummy.png: Added.
+        * web-platform-tests/fetch/api/request/destination/resources/dummy.ttf: Added.
+        * web-platform-tests/fetch/api/request/destination/resources/dummy_audio.mp3: Added.
+        * web-platform-tests/fetch/api/request/destination/resources/dummy_audio.oga: Added.
+        * web-platform-tests/fetch/api/request/destination/resources/dummy_video.mp4: Added.
+        * web-platform-tests/fetch/api/request/destination/resources/dummy_video.ogv: Added.
+        * web-platform-tests/fetch/api/request/destination/resources/empty.https.html: Added.
+        * web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker-iframe.js: Added.
+        (event.request.url.includes.):
+        (event.request.url.includes):
+        * web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker-no-load-event.js: Added.
+        (event.request.url.includes):
+        * web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker.js: Added.
+        (event.request.url.includes):
+        * web-platform-tests/fetch/api/request/destination/resources/importer.js: Added.
+        * web-platform-tests/fetch/api/request/destination/resources/w3c-import.log: Added.
+        * web-platform-tests/fetch/api/request/destination/w3c-import.log: Added.
+
+2018-06-25  Youenn Fablet  <youenn@apple.com>
+
         NetworkLoadChecker should not check CORS for 304 responses triggered by WebProcess revalidation
         https://bugs.webkit.org/show_bug.cgi?id=186939
         <rdar://problem/40941725>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-iframe.https-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-iframe.https-expected.txt
new file mode 100644 (file)
index 0000000..6b9dc1f
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Initialize global state 
+PASS iframe fetches with a "document" Request.destination 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-iframe.https.html b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-iframe.https.html
new file mode 100644 (file)
index 0000000..cb1e9d8
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<title>Fetch destination tests for resources with no load event</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/common/get-host-info.sub.js"></script>
+<script src="/service-workers/service-worker/resources/test-helpers.sub.js"></script>
+<script>
+let frame;
+const kScope = 'resources/dummy.html?dest=document';
+
+// Set up the service worker and the frame.
+promise_test(t => {
+    const kScript = 'resources/fetch-destination-worker-iframe.js';
+    return service_worker_unregister_and_register(t, kScript, kScope)
+      .then(registration => {
+          add_completion_callback(() => {
+              registration.unregister();
+            });
+
+          return wait_for_state(t, registration.installing, 'activated');
+        });
+  }, 'Initialize global state');
+
+var waitOnMessageFromSW = async t => {
+    await new Promise((resolve, reject) => {
+        navigator.serviceWorker.onmessage = t.step_func(event => {
+            if (event.data == "PASS") {
+                resolve();
+            } else {
+                reject();
+            }
+        });
+    }).catch(() => {;
+        assert_unreached("Wrong destination.");
+    });
+    t.add_cleanup(() => { frame.contentWindow.navigator.serviceWorker.onmessage = null; });
+}
+
+// Document destination
+///////////////////////
+promise_test(async t => {
+    var f = document.createElement('iframe');
+    frame = f;
+    f.className = 'test-iframe';
+    f.src = kScope;
+    document.body.appendChild(f);
+    await waitOnMessageFromSW(t);
+    add_completion_callback(() => { f.remove(); });
+}, 'iframe fetches with a "document" Request.destination');
+
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-no-load-event.https.html b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-no-load-event.https.html
new file mode 100644 (file)
index 0000000..1778bf2
--- /dev/null
@@ -0,0 +1,124 @@
+<!DOCTYPE html>
+<title>Fetch destination tests for resources with no load event</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/common/get-host-info.sub.js"></script>
+<script src="/service-workers/service-worker/resources/test-helpers.sub.js"></script>
+<script>
+let frame;
+
+// Set up the service worker and the frame.
+promise_test(t => {
+    const kScope = 'resources/';
+    const kFrame = 'resources/empty.https.html';
+    const kScript = 'resources/fetch-destination-worker-no-load-event.js';
+    return service_worker_unregister_and_register(t, kScript, kScope)
+      .then(registration => {
+          add_completion_callback(() => {
+              registration.unregister();
+            });
+
+          return wait_for_state(t, registration.installing, 'activated');
+        })
+      .then(() => {
+          return with_iframe(kFrame);
+        })
+      .then(f => {
+          frame = f;
+          add_completion_callback(() => { f.remove(); });
+        });
+  }, 'Initialize global state');
+
+var waitOnMessageFromSW = async t => {
+    await new Promise((resolve, reject) => {
+        frame.contentWindow.navigator.serviceWorker.onmessage = t.step_func(event => {
+            if (event.data == "PASS") {
+                resolve();
+            } else {
+                reject();
+            }
+        });
+    }).catch(() => {;
+        assert_unreached("Wrong destination.");
+    });
+    t.add_cleanup(() => { frame.contentWindow.navigator.serviceWorker.onmessage = null; });
+}
+// Actual tests
+
+// Image destination
+////////////////////
+
+// CSS background image - image destination
+promise_test(async t => {
+    let node = frame.contentWindow.document.createElement("div");
+    node.style = "background-image: url(dummy.png?t=bg2&dest=image)";
+    frame.contentWindow.document.body.appendChild(node);
+
+    await waitOnMessageFromSW(t);
+}, 'Background image fetches with an "image" Request.destination');
+
+// Font destination
+///////////////////
+
+// Font loading API - font destination
+promise_test(async t => {
+    let font = new frame.contentWindow.FontFace("foo", "url(dummy.ttf?t=api&dest=font)");
+    font.load();
+
+    await waitOnMessageFromSW(t);
+}, 'Font loading API fetches with an "font" Request.destination');
+
+// CSS font - font destination
+promise_test(async t => {
+    let style = frame.contentWindow.document.createElement("style");
+    style.innerHTML = "@font-face { font-family: foo; src: url(dummy.ttf?t=css&dest=font); }";
+    style.innerHTML += "div {font-family: foo; }";
+    let div = frame.contentWindow.document.createElement("div");
+    div.innerHTML = "bar";
+    frame.contentWindow.document.body.appendChild(style);
+    frame.contentWindow.document.body.appendChild(div);
+
+    await waitOnMessageFromSW(t);
+}, 'CSS font fetches with an "font" Request.destination');
+
+// Empty string destination
+///////////////////////////
+
+// sendBeacon() - empty string destination
+promise_test(async t => {
+    frame.contentWindow.navigator.sendBeacon("dummy?t=beacon&dest=", "foobar");
+
+    await waitOnMessageFromSW(t);
+}, 'sendBeacon() fetches with an empty string Request.destination');
+
+// Cache.add() - empty string destination
+promise_test(async t => {
+    frame.contentWindow.caches.open("foo").then(cache => {
+        cache.add("dummy?t=cache&dest=");
+    });
+
+    await waitOnMessageFromSW(t);
+}, 'Cache.add() fetches with an empty string Request.destination');
+
+// script destination
+/////////////////////
+
+// importScripts() - script destination
+promise_test(async t => {
+    let worker = new frame.contentWindow.Worker("importer.js");
+
+    await waitOnMessageFromSW(t);
+}, 'importScripts() fetches with a "script" Request.destination');
+
+// style destination
+/////////////////////
+// @import - style destination
+promise_test(async t => {
+    let node = frame.contentWindow.document.createElement("style");
+    node.innerHTML = '@import url("dummy?t=import&dest=style")';
+    frame.contentWindow.document.body.appendChild(node);
+
+    await waitOnMessageFromSW(t);
+}, '@import fetches with a "style" Request.destination');
+
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-worker.https-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-worker.https-expected.txt
new file mode 100644 (file)
index 0000000..f386362
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Initialize global state 
+PASS Worker fetches with a "worker" Request.destination 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-worker.https.html b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-worker.https.html
new file mode 100644 (file)
index 0000000..8421d4a
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<title>Fetch destination tests for resources with no load event</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/common/get-host-info.sub.js"></script>
+<script src="/service-workers/service-worker/resources/test-helpers.sub.js"></script>
+<script>
+let frame;
+
+// Set up the service worker and the frame.
+promise_test(t => {
+    const kScope = 'resources/dummy.html';
+    const kScript = 'resources/fetch-destination-worker-no-load-event.js';
+    return service_worker_unregister_and_register(t, kScript, kScope)
+      .then(registration => {
+          add_completion_callback(() => {
+              registration.unregister();
+            });
+
+          return wait_for_state(t, registration.installing, 'activated');
+        })
+      .then(() => {
+          return with_iframe(kScope);
+        })
+      .then(f => {
+          frame = f;
+          add_completion_callback(() => { f.remove(); });
+        });
+  }, 'Initialize global state');
+
+var waitOnMessageFromSW = async t => {
+    await new Promise((resolve, reject) => {
+        frame.contentWindow.navigator.serviceWorker.onmessage = t.step_func(event => {
+            if (event.data == "PASS") {
+                resolve();
+            } else {
+                reject();
+            }
+        });
+    }).catch(() => {;
+        assert_unreached("Wrong destination.");
+    });
+    t.add_cleanup(() => { frame.contentWindow.navigator.serviceWorker.onmessage = null; });
+}
+
+// worker destination
+/////////////////////
+promise_test(async t => {
+    // We can use an html file as we don't really care about the worker successfully loading.
+    let worker = new frame.contentWindow.Worker("dummy.html?t=worker&dest=worker");
+    await waitOnMessageFromSW(t);
+}, 'Worker fetches with a "worker" Request.destination');
+
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination.https.html b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination.https.html
new file mode 100644 (file)
index 0000000..5d9f717
--- /dev/null
@@ -0,0 +1,442 @@
+<!DOCTYPE html>
+<title>Fetch destination tests</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/common/get-host-info.sub.js"></script>
+<script src="/common/media.js"></script>
+<script src="/service-workers/service-worker/resources/test-helpers.sub.js"></script>
+<script>
+let frame;
+
+// Set up the service worker and the frame.
+promise_test(t => {
+    const kScope = 'resources/empty.https.html';
+    const kScript = 'resources/fetch-destination-worker.js';
+    return service_worker_unregister_and_register(t, kScript, kScope)
+      .then(registration => {
+          add_completion_callback(() => {
+              registration.unregister();
+            });
+
+          return wait_for_state(t, registration.installing, 'activated');
+        })
+      .then(() => {
+          return with_iframe(kScope);
+        })
+      .then(f => {
+          frame = f;
+          add_completion_callback(() => { f.remove(); });
+        });
+  }, 'Initialize global state');
+
+// Actual tests
+
+// Image destination
+////////////////////
+
+// HTMLImageElement - image destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("img");
+      node.onload = resolve;
+      node.onerror = reject;
+      node.src = "dummy.png?dest=image";
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLImageElement fetches with an "image" Request.destination');
+
+// HTMLImageElement with srcset attribute - image destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("img");
+      node.onload = resolve;
+      node.onerror = reject;
+      node.srcset = "dummy.png?t=srcset&dest=image";
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLImageElement with srcset attribute fetches with an "image" Request.destination');
+
+// HTMLImageElement with srcset attribute - image destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let img = frame.contentWindow.document.createElement("img");
+      let picture = frame.contentWindow.document.createElement("picture");
+      let source = frame.contentWindow.document.createElement("source");
+      picture.appendChild(source);
+      picture.appendChild(img);
+      img.onload = resolve;
+      img.onerror = reject;
+      source.srcset = "dummy.png?t=picture&dest=image";
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLImageElement with a HTMLPictureElement parent attribute fetches with an "image" Request.destination');
+
+// SVGImageElement - image destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let svg = frame.contentWindow.document.createElementNS('http://www.w3.org/2000/svg','svg');
+      svg.setAttributeNS('http://www.w3.org/2000/svg','xlink','http://www.w3.org/1999/xlink');
+      let svgimg = frame.contentWindow.document.createElementNS('http://www.w3.org/2000/svg','image');
+      svgimg.onload = resolve;
+      svgimg.onerror = reject;
+      svgimg.setAttributeNS('http://www.w3.org/1999/xlink','href','dummy.png?t=svg&dest=image');
+      svg.appendChild(svgimg);
+      frame.contentWindow.document.documentElement.appendChild(svg);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'SVGImageElement fetches with an "image" Request.destination');
+
+// Empty string destination
+///////////////////////////
+
+// fetch() - empty string destination
+promise_test(async t => {
+  let response = await frame.contentWindow.fetch("dummy?dest=");
+  assert_true(response.ok);
+}, 'fetch() fetches with an empty string Request.destination');
+
+// XMLHttpRequest - empty string destination
+promise_test(async t => {
+  let xhr;
+  await new Promise((resolve, reject) => {
+      xhr = new frame.contentWindow.XMLHttpRequest();
+      xhr.onload = resolve;
+      xhr.onerror = reject;
+      xhr.open("GET", "dummy?t=xhr&dest=");
+      xhr.send();
+    }).catch(() => {
+      assert_unreached("Fetch errored.");
+    });
+  assert_equals(xhr.status, 200);
+}, 'XMLHttpRequest() fetches with an empty string Request.destination');
+
+// EventSource - empty string destination
+promise_test(async t => {
+  let xhr;
+  await new Promise((resolve, reject) => {
+      eventSource = new frame.contentWindow.EventSource("dummy.es?t=eventsource&dest=");
+      eventSource.onopen = resolve;
+      eventSource.onerror = reject;
+    }).catch(() => {
+      assert_unreached("Fetch errored.");
+    });
+}, 'EventSource() fetches with an empty string Request.destination');
+
+// HTMLAudioElement - audio destination
+///////////////////////////////////////
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let audioURL = getAudioURI("dummy_audio");
+      let node = frame.contentWindow.document.createElement("audio");
+      node.onloadeddata = resolve;
+      node.onerror = reject;
+      node.src = audioURL + "?dest=audio";
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLAudioElement fetches with an "audio" Request.destination');
+
+// HTMLVideoElement - video destination
+///////////////////////////////////////
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let videoURL = getVideoURI("dummy_video");
+      let node = frame.contentWindow.document.createElement("video");
+      node.onloadeddata = resolve;
+      node.onerror = reject;
+      node.src = videoURL + "?dest=video";
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLVideoElement fetches with a "video" Request.destination');
+
+// script destinations
+//////////////////////
+
+// HTMLScriptElement - script destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("script");
+      node.onload = resolve;
+      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');
+
+// 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";
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = "dummy?dest=style";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=stylesheet fetches with a "style" Request.destination');
+
+// Preload tests
+////////////////
+// HTMLLinkElement with rel=preload and as=fetch - empty string destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("link");
+      node.rel = "preload";
+      node.as = "fetch";
+      if (node.as != "fetch") {
+        resolve();
+      }
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = "dummy?t=2&dest=";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=preload and as=fetch fetches with an empty string Request.destination');
+
+// HTMLLinkElement with rel=preload and as=style - style destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("link");
+      node.rel = "preload";
+      node.as = "style";
+      if (node.as != "style") {
+        resolve();
+      }
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = "dummy?t=2&dest=style";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=preload and as=style fetches with a "style" Request.destination');
+
+// HTMLLinkElement with rel=preload and as=script - script destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("link");
+      node.rel = "preload";
+      node.as = "script";
+      if (node.as != "script") {
+        resolve();
+      }
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = "dummy?t=2&dest=script";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=preload and as=script fetches with a "script" Request.destination');
+
+// HTMLLinkElement with rel=preload and as=font - font destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("link");
+      node.rel = "preload";
+      node.as = "font";
+      if (node.as != "font") {
+        resolve();
+      }
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = "dummy?t=2&dest=font";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=preload and as=font fetches with a "font" Request.destination');
+
+// HTMLLinkElement with rel=preload and as=image - image destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("link");
+      node.rel = "preload";
+      node.as = "image";
+      if (node.as != "image") {
+        resolve();
+      }
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = "dummy.png?t=2&dest=image";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=preload and as=image fetches with a "image" Request.destination');
+
+// HTMLLinkElement with rel=preload and as=audio - audio destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let audioURL = getAudioURI("dummy_audio");
+      let node = frame.contentWindow.document.createElement("link");
+      node.rel = "preload";
+      node.as = "audio";
+      if (node.as != "audio") {
+        resolve();
+      }
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = audioURL + "?dest=audio";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=preload and as=audio fetches with a "audio" Request.destination');
+
+// HTMLLinkElement with rel=preload and as=video - video destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let videoURL = getVideoURI("dummy_video");
+      let node = frame.contentWindow.document.createElement("link");
+      node.rel = "preload";
+      node.as = "video";
+      if (node.as != "video") {
+        resolve();
+      }
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = videoURL + "?dest=video";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=preload and as=video fetches with a "video" Request.destination');
+
+// HTMLLinkElement with rel=preload and as=track - track destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("link");
+      node.rel = "preload";
+      node.as = "track";
+      if (node.as != "track") {
+        resolve();
+      }
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = "dummy?dest=track";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=preload and as=track fetches with a "track" Request.destination');
+
+// HTMLLinkElement with rel=preload and as=document - document destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("link");
+      node.rel = "preload";
+      node.as = "document";
+      if (node.as != "document") {
+        resolve();
+      }
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = "dummy?dest=document";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=preload and as=document fetches with a "document" Request.destination');
+
+// HTMLLinkElement with rel=preload and as=worker - worker destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("link");
+      node.rel = "preload";
+      node.as = "worker";
+      if (node.as != "worker") {
+        resolve();
+      }
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = "dummy?dest=worker";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=preload and as=worker fetches with a "worker" Request.destination');
+
+// HTMLLinkElement with rel=preload and as=sharedworker - sharedworker destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("link");
+      node.rel = "preload";
+      node.as = "sharedworker";
+      if (node.as != "sharedworker") {
+        resolve();
+      }
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = "dummy?dest=sharedworker";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=preload and as=sharedworker fetches with a "sharedworker" Request.destination');
+
+// HTMLLinkElement with rel=preload and as=xslt - xslt destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("link");
+      node.rel = "preload";
+      node.as = "xslt";
+      if (node.as != "xslt") {
+        resolve();
+      }
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = "dummy?dest=xslt";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=preload and as=xslt fetches with a "xslt" Request.destination');
+
+// HTMLLinkElement with rel=preload and as=manifest - manifest destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("link");
+      node.rel = "preload";
+      node.as = "manifest";
+      if (node.as != "manifest") {
+        resolve();
+      }
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = "dummy?dest=manifest";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=preload and as=manifest fetches with a "manifest" Request.destination');
+
+// HTMLLinkElement with rel=prefetch - empty string destination
+promise_test(async t => {
+  await new Promise((resolve, reject) => {
+      let node = frame.contentWindow.document.createElement("link");
+      node.rel = "prefetch";
+      node.onload = resolve;
+      node.onerror = reject;
+      node.href = "dummy?dest=";
+      frame.contentWindow.document.body.appendChild(node);
+  }).catch(() => {
+      assert_unreached("Fetch errored.");
+  });
+}, 'HTMLLinkElement with rel=prefetch fetches with an empty string Request.destination');
+
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.es b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.es
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.es.headers b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.es.headers
new file mode 100644 (file)
index 0000000..9bb8bad
--- /dev/null
@@ -0,0 +1 @@
+Content-Type: text/event-stream
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.html b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.html
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.png b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.png
new file mode 100644 (file)
index 0000000..01c9666
Binary files /dev/null and b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.png differ
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.ttf b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.ttf
new file mode 100644 (file)
index 0000000..9023592
Binary files /dev/null and b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.ttf differ
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_audio.mp3 b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_audio.mp3
new file mode 100644 (file)
index 0000000..0091330
Binary files /dev/null and b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_audio.mp3 differ
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_audio.oga b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_audio.oga
new file mode 100644 (file)
index 0000000..239ad2b
Binary files /dev/null and b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_audio.oga differ
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_video.mp4 b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_video.mp4
new file mode 100644 (file)
index 0000000..7022e75
Binary files /dev/null and b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_video.mp4 differ
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_video.ogv b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_video.ogv
new file mode 100644 (file)
index 0000000..de99616
Binary files /dev/null and b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_video.ogv differ
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/empty.https.html b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/empty.https.html
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker-iframe.js b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker-iframe.js
new file mode 100644 (file)
index 0000000..7634583
--- /dev/null
@@ -0,0 +1,20 @@
+self.addEventListener('fetch', function(event) {
+    if (event.request.url.includes('dummy')) {
+        event.waitUntil(async function() {
+            let destination = new URL(event.request.url).searchParams.get("dest");
+            let clients = await self.clients.matchAll({"includeUncontrolled": true});
+            clients.forEach(function(client) {
+                if (client.url.includes("fetch-destination-iframe")) {
+                    if (event.request.destination == destination) {
+                        client.postMessage("PASS");
+                    } else {
+                        client.postMessage("FAIL");
+                    }
+                }
+            })
+        }());
+    }
+    event.respondWith(fetch(event.request));
+});
+
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker-no-load-event.js b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker-no-load-event.js
new file mode 100644 (file)
index 0000000..5a3c679
--- /dev/null
@@ -0,0 +1,18 @@
+self.addEventListener('fetch', function(event) {
+    if (event.request.url.includes('dummy')) {
+        event.waitUntil(async function() {
+            let destination = new URL(event.request.url).searchParams.get("dest");
+            var result = "FAIL";
+            if (event.request.destination == destination) {
+              result = "PASS";
+            }
+            let cl = await clients.matchAll({includeUncontrolled: true});
+            for (i = 0; i < cl.length; i++) {
+              cl[i].postMessage(result);
+            }
+        }())
+    }
+    event.respondWith(fetch(event.request));
+});
+
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker.js b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker.js
new file mode 100644 (file)
index 0000000..f8e8e26
--- /dev/null
@@ -0,0 +1,11 @@
+self.addEventListener('fetch', function(event) {
+    if (event.request.url.includes('dummy')) {
+        let destination = new URL(event.request.url).searchParams.get("dest");
+        if (event.request.destination == destination) {
+            event.respondWith(fetch(event.request));
+        } else {
+            event.respondWith(Response.error());
+        }
+    }
+});
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/importer.js b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/importer.js
new file mode 100644 (file)
index 0000000..9568474
--- /dev/null
@@ -0,0 +1 @@
+importScripts("dummy?t=importScripts&dest=script");
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/w3c-import.log
new file mode 100644 (file)
index 0000000..cc6a850
--- /dev/null
@@ -0,0 +1,31 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the WPT github:
+       https://github.com/web-platform-tests/wpt
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.es
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.es.headers
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.html
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.png
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy.ttf
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_audio.mp3
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_audio.oga
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_video.mp4
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/dummy_video.ogv
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/empty.https.html
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker-iframe.js
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker-no-load-event.js
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/fetch-destination-worker.js
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/resources/importer.js
diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/w3c-import.log
new file mode 100644 (file)
index 0000000..fea0a10
--- /dev/null
@@ -0,0 +1,20 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the WPT github:
+       https://github.com/web-platform-tests/wpt
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-iframe.https.html
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-no-load-event.https.html
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-worker.https.html
+/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination.https.html
index f4aeed2..9fdfa62 100644 (file)
@@ -13,6 +13,7 @@ imported/w3c/web-platform-tests/server-timing/service_worker_idl.html [ Skip ]
 http/wpt/service-workers [ Skip ]
 http/wpt/cache-storage [ Skip ]
 http/tests/cache-storage [ Skip ]
+imported/w3c/web-platform-tests/fetch/api/request/destination [ Skip ]
 
 # Skip WebRTC for now in WK1
 imported/w3c/web-platform-tests/webrtc [ Skip ]
index 1999bbc..3cbf5dd 100644 (file)
@@ -150,6 +150,7 @@ http/tests/appcache/main-resource-redirect-with-sw.html [ Skip ]
 http/tests/cookies/same-site/fetch-in-cross-origin-service-worker.html [ Skip ]
 http/tests/cookies/same-site/fetch-in-same-origin-service-worker.html [ Skip ]
 imported/w3c/web-platform-tests/server-timing/service_worker_idl.html [ Skip ]
+imported/w3c/web-platform-tests/fetch/api/request/destination [ Skip ]
 
 # Skip WebRTC for now in WK1
 imported/w3c/web-platform-tests/webrtc [ Skip ]
index aabf8be..565b7cf 100644 (file)
@@ -3808,6 +3808,7 @@ imported/w3c/web-platform-tests/service-workers [ Skip ]
 http/tests/cache-storage [ Skip ]
 http/wpt/cache-storage [ Skip ]
 http/tests/appcache/main-resource-redirect-with-sw.html [ Skip ]
+imported/w3c/web-platform-tests/fetch/api/request/destination [ Skip ]
 
 # No header filtering for WK1
 http/wpt/loading/redirect-headers.html [ Skip ]