-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (27 loc) · 1.31 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<title>OKAC demos: the basics</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<header>
<h1>Origin-keyed agent cluster demos</h1>
<h2>The basics</h2>
</header>
<main>
<p>If your browser supports origin-keyed agent clusters, then following iframe:</p>
<ul>
<li>should be in a separate process; check with, e.g., the Chrome Task Manager, <kbd>Shift+Esc</kbd>.</li>
<li>when you click the WebAssembly.Module button, should display that it got a <code>messageerror</code> event.</li>
<li>when you click the sync script button, should display an error.</li>
</ul>
<p>Note that the iframe does <em>not</em> send the <code>Origin-Agent-Cluster</code> header. This demo shows how the outer page can origin-key itself, even without the cooperation of the iframe.</p>
<button id="send">Try to send a <code>WebAssembly.Module</code></button>
<button id="sync-script">Try to sychronously script the iframe</button>
<iframe src="https://sub.origin-agent-cluster-demo.dev/sub.html"></iframe>
<pre id="output"></pre>
<script type="module" src="outer-script.mjs"></script>
</main>
<footer>
<a href="https://github.com/domenic/origin-agent-cluster-demo.dev">Source and demo index</a>
</footer>