@@ -89471,31 +89471,35 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
89471
89471
ensure that web developers see interoperable behavior with regard to shared memory, even in the
89472
89472
face of varying and changing user agent process models.</p>
89473
89473
89474
+ <p>An <span>agent cluster</span> has an associated <dfn>cross-origin isolated</dfn> (a boolean),
89475
+ which is initially false.</p>
89476
+ <!-- TODO: maybe this should move into the eventual COEP PR as it impacts shared workers? -->
89477
+
89478
+
89474
89479
<div w-nodev>
89475
89480
89476
89481
<hr>
89477
89482
89478
89483
<p>The following defines the allocation of the <span data-x="agent cluster">agent clusters</span>
89479
89484
of <span data-x="similar-origin window agent">similar-origin window agents</span>.</p>
89480
89485
89481
- <p>An <dfn>agent cluster key</dfn> is a <span>site</span>.</p>
89482
-
89483
- <p class="XXX"><a href="https://github.com/whatwg/html/pull/4734">whatwg/html #4734</a> is
89484
- expected to widen <span>agent cluster key</span> (but not <span>site</span>) to encompass all
89485
- <span data-x="concept-origin-tuple">tuple origins</span>.</p>
89486
-
89487
- <p>To <dfn data-x="obtain-agent-cluster-key">obtain an agent cluster key</dfn>, given an origin
89488
- <var>origin</var>, return the result of <span data-x="obtain a site">obtaining a site</span> with
89489
- <var>origin</var>.</p>
89486
+ <p>An <dfn>agent cluster key</dfn> is a <span>site</span> or <span
89487
+ data-x="concept-origin-tuple">tuple origin</span> whose <span
89488
+ data-x="concept-origin-host">host</span>'s <span>registrable domain</span> is non-null. I.e., an
89489
+ <span>agent cluster key</span> can be any <span>origin</span>.</p>
89490
89490
89491
89491
<p>To <dfn data-x="obtain-similar-origin-window-agent">obtain a similar-origin window agent</dfn>,
89492
89492
given an <span>origin</span> <var>origin</var> and <span>browsing context group</span>
89493
89493
<var>group</var>, run these steps:</p>
89494
89494
89495
89495
<ol>
89496
- <li><p>Let <var>clusterKey</var> be the result of <span
89497
- data-x="obtain-agent-cluster-key" data-export="">obtaining an agent cluster key</span> given
89498
- <var>origin</var>.</p></li>
89496
+ <li><p>Let <var>clusterKey</var> be the result of <span data-x="obtain a site">obtaining a
89497
+ site</span> with <var>origin</var>.</p></li>
89498
+
89499
+ <li><p>If <var>group</var>'s <dfn data-x="bcg cross-origin isolated">cross-origin isolated</dfn>
89500
+ is true, then set <var>clusterKey</var> to <var>origin</var>.</p></li>
89501
+ <!-- TODO: this is not the place to <dfn> this, but doing this for now so the build does not
89502
+ fail. https://github.com/whatwg/html/pull/5334 will take care of this. -->
89499
89503
89500
89504
<li><p>Let <var>agentCluster</var> be the result of <span
89501
89505
data-x="obtain-browsing-agent-cluster">obtaining a browsing context agent cluster</span> with
@@ -89508,14 +89512,21 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
89508
89512
<p>To <dfn data-x="obtain-browsing-agent-cluster">obtain a browsing context agent cluster</dfn>,
89509
89513
given a <span>browsing context group</span> <var>group</var> and <span>agent cluster key</span>
89510
89514
<var>key</var>, run these steps:</p>
89515
+ <!-- Question: why not fold this into the above algorithm? Does it really need to be separate?
89516
+ Might even add some clarity around the return value of the above algorithm. -->
89511
89517
89512
89518
<ol>
89513
89519
<li>
89514
89520
<p>If <var>group</var>'s <span>agent cluster map</span>[<var>key</var>] <span data-x="map
89515
89521
exists">does not exist, then:</span></p>
89522
+
89516
89523
<ol>
89517
89524
<li><p>Let <var>agentCluster</var> be a new <span>agent cluster</span>.</p></li>
89518
89525
89526
+ <li><p>If <var>group</var>'s <span data-x="bcg cross-origin isolated">cross-origin
89527
+ isolated</span> is true, then set <var>agentCluster</var>'s <span>cross-origin isolated</span>
89528
+ to true.</p></li>
89529
+
89519
89530
<li><p>Add the result of <span data-x="create an agent">creating an agent</span>, given false,
89520
89531
to <var>agentCluster</var>.</p></li>
89521
89532
0 commit comments