Skip to content

Commit f0c5ed8

Browse files
committed
Move browsing context to document state
1 parent 3e217b7 commit f0c5ed8

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

source

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82741,10 +82741,8 @@ interface <dfn>BarProp</dfn> {
8274182741
<dl>
8274282742
<dt><span data-x="she-url">URL</span></dt>
8274382743
<dd><var>document</var>'s <span data-x="concept-document-url">URL</span></dd>
82744-
<dt><span data-x="she-bc">browsing context</span></dt>
82745-
<dd><var>browsingContext</var></dd>
8274682744
<dt><span data-x="she-document-state">document state</span></dt>
82747-
<dd>A new <span>document state</span> with its <span data-x="document-state-document">document</span> set to <var>document</var></dd>
82745+
<dd>A new <span>document state</span> with its <span data-x="document-state-document">document</span> set to <var>document</var> and its <span data-x="document-state-bc">browsing context</span> set to <var>browsingContext</var>.</dd>
8274882746
</dl>
8274982747
</li>
8275082748

@@ -83078,8 +83076,6 @@ interface <dfn>BarProp</dfn> {
8307883076

8307983077
JAKE-TODO: The current spec doesn't handle srcdoc iframes. I think the best way to handle this is to change the above to a URL or a response, and srcdoc iframes set it to a response. This works well with "navigate" which accepts a response.
8308083078

83081-
<li><p><dfn data-x="she-bc">browsing context</dfn>, a <span>browsing context</span></p></li>
83082-
8308383079
<li><p><dfn data-x="she-document-state">document state</dfn>, a <span>document state</span></p></li>
8308483080

8308583081
<li><p><dfn data-x="she-serialized-state">serialized state</dfn>, which is <span>serialized
@@ -83123,9 +83119,11 @@ interface <dfn>BarProp</dfn> {
8312383119

8312483120
<p>To get a <span>session history entry</span>'s <dfn data-x="she-document">document</dfn>, return its <span data-x="she-document-state">document state</span>'s <span data-x="document-state-document">document</span>.</p>
8312583121

83122+
<p>To get a <span>session history entry</span>'s <dfn data-x="she-bc">browsing context</dfn>, return its <span data-x="she-document-state">document state</span>'s <span data-x="document-state-bc">browsing context</span>.</p>
83123+
8312683124
<p>JAKE-TODO: look out for things trying to set the above, and instead go via the document state.</p>
8312783125

83128-
<p><dfn>Document state</dfn> holds state about a potential <code>Document</code>. It has:</p>
83126+
<p><dfn>Document state</dfn> holds state about how to present a <code>Document</code>. It has:</p>
8312983127

8313083128
<ul>
8313183129
<li>
@@ -83134,6 +83132,8 @@ interface <dfn>BarProp</dfn> {
8313483132
<p class="note">Each history entry, when first created, has a <code>Document</code> in its <span data-x="she-document-state">document state</span>. However, when a <code>Document</code> is not <span data-x="fully active">active</span>, it's possible for it to be <span data-x="discard a Document">discarded</span> to free resources. The <span data-x="she-url">URL</span> and other data in the <span>session history entry</span> and <span data-x="she-document-state">document state</span> is then used to bring a new <code>Document</code> into being to take the place of the original, in the case where the user agent finds itself having to navigate to the entry.</p>
8313583133
</li>
8313683134

83135+
<li><p>A <dfn data-x="document-state-bc">browsing context</dfn>, a <span>browsing context</span>.</p></li>
83136+
8313783137
<li><p><dfn data-x="document-state-nested-histories">Nested histories</dfn>, a <span>list</span> of <span data-x="nested history">nested histories</span>.</p></li>
8313883138
</ul>
8313983139

@@ -86405,9 +86405,7 @@ new PaymentRequest(&hellip;); // Allowed to use
8640586405
<dl>
8640686406
<dt><span data-x="she-url">URL</span></dt>
8640786407
<dd><var>url</var></dd>
86408-
<dt><dfn data-x="she-bc">browsing context</dfn></dt>
86409-
<dd><var>navigable</var>'s <span data-x="nav-bc">current browsing context</span></dd>
86410-
<dt><dfn data-x="she-document-state">document state</dfn></dt>
86408+
<dt><span data-x="she-document-state">document state</span></dt>
8641186409
<dd><var>navigable</var>'s <span data-x="nav-current-history-entry">current session history entry</span>'s <span data-x="she-document-state">document state</span></dd>
8641286410
</dl>
8641386411
</li>

0 commit comments

Comments
 (0)