@@ -96471,11 +96471,6 @@ interface <dfn interface>NotRestoredReasons</dfn> {
9647196471 <li><p>Return <var>navigables</var>.</p></li>
9647296472 </ol>
9647396473
96474- <p class="note">These descendant-collecting algorithms are described as looking at the DOM tree
96475- of descendant <code>Document</code> objects. In reality, this is often not feasible since the DOM
96476- tree can be in another process from the caller of the algorithm. Instead, implementations
96477- generally replicate the appropriate trees across processes.</p>
96478-
9647996474 <p id="document-tree-child-browsing-context">The <dfn>document-tree child navigables</dfn> of a
9648096475 <code>Document</code> <var>document</var> are given by these steps:</p>
9648196476
@@ -96505,6 +96500,35 @@ interface <dfn interface>NotRestoredReasons</dfn> {
9650596500 <li><p>Return <var>navigables</var>.</p></li>
9650696501 </ol>
9650796502
96503+ <p class="note">These descendant-collecting algorithms are described as looking at the DOM tree
96504+ of descendant <code>Document</code> objects. In reality, this is often not feasible since the DOM
96505+ tree can be in another process from the caller of the algorithm. Instead, implementations
96506+ generally replicate the appropriate trees across processes.</p>
96507+
96508+ <p>A <code>Document</code> <var>document</var> is <dfn export>same origin with its
96509+ ancestors</dfn> if the following algorithm returns true:</p>
96510+
96511+ <ol>
96512+ <li><p>Let <var>origin</var> be <var>document</var>'s <span
96513+ data-x="concept-document-origin">origin</span>.</p></li>
96514+
96515+ <li>
96516+ <p><span data-x="list iterate">For each</span> <var>ancestorNavigable</var> of
96517+ <var>document</var>'s <span>ancestor navigables</span>:</p>
96518+
96519+ <ol>
96520+ <li><p>Let <var>ancestorOrigin</var> be <var>ancestorNavigable</var>'s <span
96521+ data-x="nav-document">document</span>'s <span
96522+ data-x="concept-document-origin">origin</span>.</p></li>
96523+
96524+ <li><p>If <var>ancestorOrigin</var> is not <span>same origin</span> with <var>origin</var>,
96525+ then return false.</p></li>
96526+ </ol>
96527+ </li>
96528+
96529+ <li><p>Return true.</p></li>
96530+ </ol>
96531+
9650896532
9650996533 <h5 id="garbage-collection-and-browsing-contexts">Navigable destruction</h5>
9651096534
0 commit comments