Skip to content

Commit 1796e9d

Browse files
authored
Properly set visibility state for nested documents
This cannot happen inside the Make Active algorithm, since that gets called during document creation, which commonly happens before the document's navigable is created.
1 parent 77ffb97 commit 1796e9d

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

source

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84167,6 +84167,21 @@ END:VCARD</pre>
8416784167
</ol>
8416884168
</div>
8416984169

84170+
<div algorithm>
84171+
<p>To <dfn>set the initial visibility state</dfn> of <code>Document</code> <var>document</var> to
84172+
<var>visibilityState</var>:</p>
84173+
84174+
<ol>
84175+
<li><p>Set <var>document</var>'s <span>visibility state</span> to
84176+
<var>visibilityState</var>.</p></li>
84177+
84178+
<li><p><span data-x="queue a performance entry">Queue</span> a new
84179+
<code>VisibilityStateEntry</code> whose <span data-x="VisibilityStateEntry-state">visibility
84180+
state</span> is <var>document</var>'s <span>visibility state</span> and whose <span
84181+
data-x="VisibilityStateEntry-timestamp">timestamp</span> is 0.</p></li>
84182+
</ol>
84183+
</div>
84184+
8417084185
<h4>The <code>VisibilityStateEntry</code> interface</h4>
8417184186

8417284187
<p>The <code>VisibilityStateEntry</code> interface exposes visibility changes to the document,
@@ -104053,6 +104068,9 @@ interface <dfn interface>NotRestoredReasons</dfn> {
104053104068

104054104069
<li><p>Set <var>navigable</var>'s <span data-x="nav-parent">parent</span> to
104055104070
<var>parent</var>.</p></li>
104071+
104072+
<li><p><span>Set the initial visibility state</span> of <var>documentState</var>'s <span data-x="document-state-document">document</span> to
104073+
<var>navigable</var>'s <span data-x="nav-traversable">traversable navigable</span>'s <span>system visibility state</span>.</p></li>
104056104074
</ol>
104057104075
</div>
104058104076

@@ -110992,6 +111010,9 @@ location.href = '#foo';</code></pre>
110992111010
entry</span> to <var>entry</var>.</p></li>
110993111011

110994111012
<li><p><span>Make active</span> <var>newDocument</var>.</p></li>
111013+
111014+
<li><p><span>Set the initial visibility state</span> of <var>newDocument</var> to
111015+
<var>navigable</var>'s <span data-x="nav-traversable">traversable navigable</span>'s <span>system visibility state</span>.</p></li>
110995111016
</ol>
110996111017
</div>
110997111018

@@ -111482,15 +111503,6 @@ location.href = '#foo';</code></pre>
111482111503
<code>WindowProxy</code>'s <span data-x="concept-windowproxy-window">[[Window]]</span> internal
111483111504
slot value to <var>window</var>.</p></li>
111484111505

111485-
<li><p>Set <var>document</var>'s <span>visibility state</span> to <var>document</var>'s
111486-
<span>node navigable</span>'s <span data-x="nav-traversable">traversable navigable</span>'s
111487-
<span>system visibility state</span>.</p></li>
111488-
111489-
<li><p><span data-x="queue a performance entry">Queue</span> a new
111490-
<code>VisibilityStateEntry</code> whose <span data-x="VisibilityStateEntry-state">visibility
111491-
state</span> is <var>document</var>'s <span>visibility state</span> and whose <span
111492-
data-x="VisibilityStateEntry-timestamp">timestamp</span> is zero.</p></li>
111493-
111494111506
<li><p>Set <var>window</var>'s <span>relevant settings object</span>'s <span
111495111507
data-x="concept-environment-execution-ready-flag">execution ready flag</span>.</p></li>
111496111508
</ol>
@@ -158022,6 +158034,7 @@ INSERT INTERFACES HERE
158022158034
Prateek Rungta,
158023158035
Pravir Gupta,
158024158036
Prayag Verma,
158037+
Psychpsyo,
158025158038
&#x674e;&#x666e;&#x541b; (Pujun Li)<!-- masa jack -->,
158026158039
Rachid Finge,
158027158040
Rafael Weinstein,

0 commit comments

Comments
 (0)