Skip to content

Truly independent web browser

Tests: Restore upstream insecure Origin-Agent-Cluster coverage

Andreas Kling9f00d3df4b6a
diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/browsers/origin/origin-keyed-agent-clusters/insecure-http.sub.txt b/Tests/LibWeb/Text/expected/wpt-import/html/browsers/origin/origin-keyed-agent-clusters/insecure-http.sub.txt
index 315bac0ce33..ea4e1f5947b 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/html/browsers/origin/origin-keyed-agent-clusters/insecure-http.sub.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/html/browsers/origin/origin-keyed-agent-clusters/insecure-http.sub.txt
@@ -2,7 +2,8 @@ Harness status: OK
Found 3 tests
-3 Pass
-Pass setting document.domain must give sync access
+2 Pass
+1 Fail
+Fail setting document.domain must give sync access
Pass parent: originAgentCluster must equal false
Pass child: originAgentCluster must equal false
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/input/wpt-import/html/browsers/origin/origin-keyed-agent-clusters/insecure-http.sub.html b/Tests/LibWeb/Text/input/wpt-import/html/browsers/origin/origin-keyed-agent-clusters/insecure-http.sub.html
index 67f63716713..4df012fb5b2 100644
--- a/Tests/LibWeb/Text/input/wpt-import/html/browsers/origin/origin-keyed-agent-clusters/insecure-http.sub.html
+++ b/Tests/LibWeb/Text/input/wpt-import/html/browsers/origin/origin-keyed-agent-clusters/insecure-http.sub.html
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
-<title>Parent requests origin-keying, child requests origin-keying, child is same-origin with the parent, but all over insecure HTTP</title>
+<title>Parent requests origin-keying, child requests origin-keying, child is a subdomain of the parent, but all over insecure HTTP</title>
<script src="../../../../resources/testharness.js"></script>
<script src="../../../../resources/testharnessreport.js"></script>
@@ -14,8 +14,7 @@ import {
} from "./resources/helpers.mjs";
promise_setup(async () => {
- // NB: The text runner assigns this fixture an isolated insecure host. Keep its child on that host.
- await insertIframe(location.host, "?1");
+ await insertIframe("{{hosts[][www]}}", "?1");
});
// All origin-keying requests are ignored, since this is over insecure HTTP.