Skip to content

Commit

Permalink
[giow] (3) Define window.close; update the list of members exposed cr…
Browse files Browse the repository at this point in the history
…oss-origin on Window to match reality

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21970
Affected topics: DOM APIs, Security

git-svn-id: http://svn.whatwg.org/webapps@7977 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 14, 2013
1 parent 4cbfe1f commit 31bb85d
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
21 changes: 21 additions & 0 deletions complete.html
Expand Up @@ -65029,6 +65029,7 @@ <h3 id=the-window-object><span class=secno>6.2 </span>The <code><a href=#window>
[Replaceable] readonly attribute <span>BarProp</span> <span title="dom-window-directories">directories</span>; // legacy (Gecko-only) -->
attribute DOMString <a href=#dom-window-status title=dom-window-status>status</a>;
void <a href=#dom-window-close title=dom-window-close>close</a>();
readonly attribute boolean <a href=#dom-window-closed title=dom-window-closed>closed</a>;
void <a href=#dom-window-stop title=dom-window-stop>stop</a>();
void <a href=#dom-window-focus title=dom-window-focus>focus</a>();
void <a href=#dom-window-blur title=dom-window-blur>blur</a>();
Expand Down Expand Up @@ -65145,6 +65146,14 @@ <h4 id=security-window><span class=secno>6.2.1 </span>Security</h4>

<li>The <code title=dom-opener><a href=#dom-opener>opener</a></code> attribute

<li>The <code title=dom-window-closed><a href=#dom-window-closed>closed</a></code> attribute

<li>The <code title=dom-window-close><a href=#dom-window-close>close()</a></code> method

<li>The <code title=dom-window-blur><a href=#dom-window-blur>blur()</a></code> method

<li>The <code title=dom-window-focus><a href=#dom-window-focus>focus()</a></code> method

<li>The <a href=#dynamic-nested-browsing-context-properties>dynamic nested browsing context properties</a>

</ul><p>When a script whose <a href=#effective-script-origin>effective script origin</a> is not the same as the
Expand Down Expand Up @@ -65204,6 +65213,14 @@ <h4 id=apis-for-creating-and-navigating-browsing-contexts-by-name><span class=se

</dd>

<dt><var title="">window</var> . <code title=dom-window-closed><a href=#dom-window-closed>closed</a></code></dt>

<dd>

<p>Returns true if the window has been closed, false otherwise.</p>

</dd>

<dt><var title="">window</var> . <code title=dom-window-stop><a href=#dom-window-stop>stop</a></code>()</dt>

<dd>
Expand Down Expand Up @@ -65299,6 +65316,10 @@ <h4 id=apis-for-creating-and-navigating-browsing-contexts-by-name><span class=se
if it is a <a href=#browsing-context>browsing context</a> whose <a href=#session-history>session history</a> contains only one
<code><a href=#document>Document</a></code>.</p>

<p>The <dfn id=dom-window-closed title=dom-window-closed><code>closed</code></dfn> attribute on <code><a href=#window>Window</a></code>
objects must return true if the <code><a href=#window>Window</a></code> object's <a href=#browsing-context>browsing context</a> has
been <a href=#a-browsing-context-is-discarded title="a browsing context is discarded">discarded</a>, and false otherwise.</p>

<p>The <dfn id=dom-window-stop title=dom-window-stop><code>stop()</code></dfn> method on <code><a href=#window>Window</a></code>
objects should, if there is an existing attempt to <a href=#navigate>navigate</a> the <a href=#browsing-context>browsing
context</a> and that attempt is not currently running the <a href=#unload-a-document>unload a document</a>
Expand Down
21 changes: 21 additions & 0 deletions index
Expand Up @@ -65029,6 +65029,7 @@ END:VCARD</pre>
[Replaceable] readonly attribute <span>BarProp</span> <span title="dom-window-directories">directories</span>; // legacy (Gecko-only) -->
attribute DOMString <a href=#dom-window-status title=dom-window-status>status</a>;
void <a href=#dom-window-close title=dom-window-close>close</a>();
readonly attribute boolean <a href=#dom-window-closed title=dom-window-closed>closed</a>;
void <a href=#dom-window-stop title=dom-window-stop>stop</a>();
void <a href=#dom-window-focus title=dom-window-focus>focus</a>();
void <a href=#dom-window-blur title=dom-window-blur>blur</a>();
Expand Down Expand Up @@ -65145,6 +65146,14 @@ END:VCARD</pre>

<li>The <code title=dom-opener><a href=#dom-opener>opener</a></code> attribute

<li>The <code title=dom-window-closed><a href=#dom-window-closed>closed</a></code> attribute

<li>The <code title=dom-window-close><a href=#dom-window-close>close()</a></code> method

<li>The <code title=dom-window-blur><a href=#dom-window-blur>blur()</a></code> method

<li>The <code title=dom-window-focus><a href=#dom-window-focus>focus()</a></code> method

<li>The <a href=#dynamic-nested-browsing-context-properties>dynamic nested browsing context properties</a>

</ul><p>When a script whose <a href=#effective-script-origin>effective script origin</a> is not the same as the
Expand Down Expand Up @@ -65204,6 +65213,14 @@ END:VCARD</pre>

</dd>

<dt><var title="">window</var> . <code title=dom-window-closed><a href=#dom-window-closed>closed</a></code></dt>

<dd>

<p>Returns true if the window has been closed, false otherwise.</p>

</dd>

<dt><var title="">window</var> . <code title=dom-window-stop><a href=#dom-window-stop>stop</a></code>()</dt>

<dd>
Expand Down Expand Up @@ -65299,6 +65316,10 @@ END:VCARD</pre>
if it is a <a href=#browsing-context>browsing context</a> whose <a href=#session-history>session history</a> contains only one
<code><a href=#document>Document</a></code>.</p>

<p>The <dfn id=dom-window-closed title=dom-window-closed><code>closed</code></dfn> attribute on <code><a href=#window>Window</a></code>
objects must return true if the <code><a href=#window>Window</a></code> object's <a href=#browsing-context>browsing context</a> has
been <a href=#a-browsing-context-is-discarded title="a browsing context is discarded">discarded</a>, and false otherwise.</p>

<p>The <dfn id=dom-window-stop title=dom-window-stop><code>stop()</code></dfn> method on <code><a href=#window>Window</a></code>
objects should, if there is an existing attempt to <a href=#navigate>navigate</a> the <a href=#browsing-context>browsing
context</a> and that attempt is not currently running the <a href=#unload-a-document>unload a document</a>
Expand Down
21 changes: 21 additions & 0 deletions source
Expand Up @@ -72520,6 +72520,7 @@ END:VCARD</pre>
[Replaceable] readonly attribute <span>BarProp</span> <span title="dom-window-directories">directories</span>; // legacy (Gecko-only) -->
attribute DOMString <span title="dom-window-status">status</span>;
void <span title="dom-window-close">close</span>();
readonly attribute boolean <span title="dom-window-closed">closed</span>;
void <span title="dom-window-stop">stop</span>();
void <span title="dom-window-focus">focus</span>();
void <span title="dom-window-blur">blur</span>();
Expand Down Expand Up @@ -72645,6 +72646,14 @@ END:VCARD</pre>

<li>The <code title="dom-opener">opener</code> attribute

<li>The <code title="dom-window-closed">closed</code> attribute

<li>The <code title="dom-window-close">close()</code> method

<li>The <code title="dom-window-blur">blur()</code> method

<li>The <code title="dom-window-focus">focus()</code> method

<li>The <span>dynamic nested browsing context properties</span>

</ul>
Expand Down Expand Up @@ -72710,6 +72719,14 @@ END:VCARD</pre>

</dd>

<dt><var title="">window</var> . <code title="dom-window-closed">closed</code></dt>

<dd>

<p>Returns true if the window has been closed, false otherwise.</p>

</dd>

<dt><var title="">window</var> . <code title="dom-window-stop">stop</code>()</dt>

<dd>
Expand Down Expand Up @@ -72821,6 +72838,10 @@ END:VCARD</pre>
if it is a <span>browsing context</span> whose <span>session history</span> contains only one
<code>Document</code>.</p>

<p>The <dfn title="dom-window-closed"><code>closed</code></dfn> attribute on <code>Window</code>
objects must return true if the <code>Window</code> object's <span>browsing context</span> has
been <span title="a browsing context is discarded">discarded</span>, and false otherwise.</p>

<p>The <dfn title="dom-window-stop"><code>stop()</code></dfn> method on <code>Window</code>
objects should, if there is an existing attempt to <span>navigate</span> the <span>browsing
context</span> and that attempt is not currently running the <span>unload a document</span>
Expand Down

0 comments on commit 31bb85d

Please sign in to comment.