Skip to content
Permalink
Browse files

[giow] (3) Define window.close; update the list of members exposed cr…

…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 31bb85d63cd1c31bdbb06a80408af15f60450585
Showing with 63 additions and 0 deletions.
  1. +21 −0 complete.html
  2. +21 −0 index
  3. +21 −0 source
[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>();

<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

</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>
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>
21 index
[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>();

<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

</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>
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>
21 source
[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>();

<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>

</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>
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>

0 comments on commit 31bb85d

Please sign in to comment.
You can’t perform that action at this time.