Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit dd7d8cc

Browse files
committed
Bug 1638177 [wpt PR 23624] - Origin isolation: test that insecure HTTP is not supported, a=testonly
Automatic update from web-platform-tests Origin isolation: test that insecure HTTP is not supported Bug: 1042415 Change-Id: I2acd2fea79a12e1f60eb9a0114abcf61630e269a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2202512 Commit-Queue: Domenic Denicola <domenic@chromium.org> Reviewed-by: James MacLean <wjmaclean@chromium.org> Cr-Commit-Position: refs/heads/master@{#774243} -- wpt-commits: e7e5f03642e0d32eac9965ee993efa589fb3997d wpt-pr: 23624 Differential Revision: https://phabricator.services.mozilla.com/D78791
1 parent 324f0b1 commit dd7d8cc

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>Parent requests isolation, child requests isolation, child is a subdomain of the parent, but all over insecure HTTP</title>
4+
<script src="/resources/testharness.js"></script>
5+
<script src="/resources/testharnessreport.js"></script>
6+
7+
<div id="log"></div>
8+
9+
<script type="module">
10+
import { insertIframe, sendWasmModule, setBothDocumentDomains } from "./resources/helpers.mjs";
11+
12+
let frameWindow;
13+
promise_setup(async () => {
14+
frameWindow = await insertIframe("{{hosts[][www]}}", "?1");
15+
});
16+
17+
// All isolation requests are ignored, since this is over insecure HTTP.
18+
// So both end up in the site-keyed agent cluster.
19+
20+
promise_test(async () => {
21+
const whatHappened = await sendWasmModule(frameWindow);
22+
23+
assert_equals(whatHappened, "WebAssembly.Module message received");
24+
}, "message event must occur");
25+
26+
promise_test(async () => {
27+
await setBothDocumentDomains(frameWindow);
28+
29+
// Must not throw
30+
frameWindow.document;
31+
}, "setting document.domain must give sync access");
32+
</script>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Origin-Isolation: ?1

0 commit comments

Comments
 (0)