Skip to content

Commit 41c88e5

Browse files
committed
Add self.crossOriginIsolated
Closes #4872. (I'm not convinced we need to add crossOriginOpener and crossOriginEmbedder for now.)
1 parent 00564b8 commit 41c88e5

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

source

+15-1
Original file line numberDiff line numberDiff line change
@@ -93299,6 +93299,7 @@ interface mixin <dfn>DocumentAndElementEventHandlers</dfn> {
9329993299

9330093300
interface mixin <dfn>WindowOrWorkerGlobalScope</dfn> {
9330193301
[Replaceable] readonly attribute USVString <span data-x="dom-origin">origin</span>;
93302+
readonly attribute boolean <span data-x="dom-crossOriginIsolated">crossOriginIsolated</span>;
9330293303

9330393304
// base64 utility methods
9330493305
DOMString <span data-x="dom-btoa">btoa</span>(DOMString data);
@@ -93322,8 +93323,17 @@ interface mixin <dfn>WindowOrWorkerGlobalScope</dfn> {
9332293323

9332393324
<dl class="domintro">
9332493325
<dt><var>origin</var> = self . <code subdfn data-x="dom-origin">origin</code></dt>
93325-
9332693326
<dd><p>Returns the global object's <span>origin</span>, serialized as string.</p></dd>
93327+
93328+
<dt><var>origin</var> = self . <code subdfn data-x="dom-crossOriginIsolated">crossOriginIsolated</code></dt>
93329+
<dd>
93330+
<p>Returns the <span>surrounding agent</span>'s <span>agent cluster</span>'s
93331+
<span>cross-origin isolated</span>.</p>
93332+
93333+
<p>(This value depends on the <code data-x="">Cross-Origin-Opener-Policy</code> and <code
93334+
data-x="">Cross-Origin-Embedder-Policy</code> HTTP response headers and determines whether
93335+
<code>SharedArrayBuffer</code> can be used with <code data-x="">postMessage()</code> APIs.)</p>
93336+
</dd>
9332793337
</dl>
9332893338

9332993339
<div class="example">
@@ -93348,6 +93358,10 @@ document.body.appendChild(frame)</code></pre>
9334893358
data-x="concept-settings-object-origin">origin</span>, <span data-x="serialization of an
9334993359
origin">serialized</span>.</p>
9335093360

93361+
<p>The <dfn data-x="dom-crossOriginIsolated"><code>crossOriginIsolated</code></dfn> attribute's
93362+
getter must return the <span>surrounding agent</span>'s <span>agent cluster</span>'s
93363+
<span>cross-origin isolated</span>.</p>
93364+
9335193365

9335293366
<h3 id="atob">Base64 utility methods</h3>
9335393367

0 commit comments

Comments
 (0)