@@ -77111,6 +77111,9 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {
77111
77111
<p>A <span>browsing context</span> has a <dfn id="disowned-its-opener">disowned</dfn> boolean. It
77112
77112
is initially false.</p>
77113
77113
77114
+ <p>A <span>browsing context</span> has an <dfn>is closing</dfn> boolean. It is initially
77115
+ false.</p>
77116
+
77114
77117
<p>A <span>browsing context</span> has a <span>session history</span>, which lists the
77115
77118
<code>Document</code> objects that the <span>browsing context</span> has presented, is presenting,
77116
77119
or will present. A <span>browsing context</span>'s <dfn data-export="">active document</dfn> is
@@ -78845,8 +78848,7 @@ dictionary <dfn>WindowPostMessageOptions</dfn> : <span>PostMessageOptions</span>
78845
78848
78846
78849
<hr>
78847
78850
78848
- <p>The <dfn><code data-x="dom-name">name</code></dfn> attribute's getter, when invoked, must run
78849
- these steps:</p>
78851
+ <p>The <dfn><code data-x="dom-name">name</code></dfn> attribute's getter must run these steps:</p>
78850
78852
78851
78853
<ol>
78852
78854
<li><p>If this <code>Window</code> object's <span data-x="window bc">browsing context</span> is
@@ -78856,8 +78858,7 @@ dictionary <dfn>WindowPostMessageOptions</dfn> : <span>PostMessageOptions</span>
78856
78858
context</span>'s <span data-x="browsing context name">name</span>.</p></li>
78857
78859
</ol>
78858
78860
78859
- <p>The <code data-x="dom-name">name</code> attribute's setter, when invoked, must run these
78860
- steps:</p>
78861
+ <p>The <code data-x="dom-name">name</code> attribute's setter must run these steps:</p>
78861
78862
78862
78863
<ol>
78863
78864
<li><p>If this <code>Window</code> object's <span data-x="window bc">browsing context</span> is
@@ -78872,35 +78873,50 @@ dictionary <dfn>WindowPostMessageOptions</dfn> : <span>PostMessageOptions</span>
78872
78873
78873
78874
<hr>
78874
78875
78875
- <p>The <dfn><code data-x="dom-window-close">close()</code></dfn> method on <code>Window</code>
78876
- objects should, if all the following conditions are met, <span data-x="close a browsing
78877
- context">close</span> the <span>browsing context</span> <var>A</var>:
78876
+ <p>The <dfn><code data-x="dom-window-close">close()</code></dfn> method must run these steps:
78878
78877
78879
- <ul class="brief">
78878
+ <ol>
78879
+ <li><p>Let <var>current</var> be this <code>Window</code> object's <span data-x="window
78880
+ bc">browsing context</span>.</p></li>
78881
+
78882
+ <li><p>If <var>current</var> is null or its <span>is closing</span> is true, then
78883
+ return.</p></li>
78884
+
78885
+ <li>
78886
+ <p>If all the following are true</p>
78887
+
78888
+ <ul class="brief">
78889
+ <li><var>current</var> is <span>script-closable</span></li>
78880
78890
78881
- <li>The corresponding <span>browsing context </span> <var>A</var > is
78882
- <span>script-closable </span>. </li>
78891
+ <li>the <span>incumbent settings object </span>'s <span>responsible browsing context</span > is
78892
+ <span>familiar with </span> <var>current</var> </li>
78883
78893
78884
- <li>The <span>responsible browsing context</span> specified by the <span>incumbent settings
78885
- object</span> is <span>familiar with</span> the <span>browsing context</span> <var>A</var>.</li>
78894
+ <li id="sandboxClose">the <span>incumbent settings object</span>'s <span>responsible browsing
78895
+ context</span> is <span>allowed to navigate</span> <var>current</var></li>
78896
+ </ul>
78886
78897
78887
- <li id="sandboxClose">The <span>responsible browsing context</span> specified by the
78888
- <span>incumbent settings object</span> is <span>allowed to navigate</span> the <span>browsing
78889
- context</span> <var>A</var>.</li>
78898
+ <p>then:</p>
78890
78899
78891
- </ul>
78900
+ <ol>
78901
+ <li><p>Set <var>current</var>'s <span>is closing</span> to true.</p></li>
78902
+
78903
+ <li><p><span>Queue a task</span> on the <span>DOM manipulation task source</span> to <span
78904
+ data-x="close a browsing context">close</span> <var>current</var>.</p></li>
78905
+ </ol>
78906
+ </li>
78907
+ </ol>
78892
78908
78893
78909
<p>A <span>browsing context</span> is <dfn>script-closable</dfn> if it is an <span>auxiliary
78894
78910
browsing context</span> that was created by a script (as opposed to by an action of the user), or
78895
78911
if it is a <span>top-level browsing context</span> whose <span>session history</span> contains
78896
78912
only one <code>Document</code>.</p>
78897
78913
78898
- <p>The <dfn><code data-x="dom-window-closed">closed</code></dfn> attribute on <code>Window</code>
78899
- objects must return true if the <code>Window</code> object's <span>browsing context</span> has
78900
- been <span data-x="a browsing context is discarded">discarded </span>, and false otherwise.</p>
78914
+ <p>The <dfn><code data-x="dom-window-closed">closed</code></dfn> attribute's getter must return
78915
+ true if this <code>Window</code> object's <span data-x="window bc" >browsing context</span> is
78916
+ null or its <span> is closing </span> is true , and false otherwise.</p>
78901
78917
78902
- <p>The <dfn><code data-x="dom-window-stop">stop()</code></dfn> method on <code>Window</code>
78903
- objects must <span>stop document loading</span> given this <code>Window</code> object's <span
78918
+ <p>The <dfn><code data-x="dom-window-stop">stop()</code></dfn> method must <span>stop document
78919
+ loading</span> given this <code>Window</code> object's <span
78904
78920
data-x="concept-document-window">associated <code>Document</code></span>.</p>
78905
78921
78906
78922
</div>
0 commit comments