[html5] r7977 - [giow] (3) Define window.close; update the list of members exposed cross-origin [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Jun 14 11:28:47 PDT 2013


Author: ianh
Date: 2013-06-14 11:28:46 -0700 (Fri, 14 Jun 2013)
New Revision: 7977

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Define window.close; update the list of members exposed cross-origin on Window to match reality
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21970
Affected topics: DOM APIs, Security

Modified: complete.html
===================================================================
--- complete.html	2013-06-14 18:15:48 UTC (rev 7976)
+++ complete.html	2013-06-14 18:28:46 UTC (rev 7977)
@@ -65029,6 +65029,7 @@
   [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>();
@@ -65145,6 +65146,14 @@
 
    <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
@@ -65204,6 +65213,14 @@
 
    </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>
@@ -65299,6 +65316,10 @@
   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>

Modified: index
===================================================================
--- index	2013-06-14 18:15:48 UTC (rev 7976)
+++ index	2013-06-14 18:28:46 UTC (rev 7977)
@@ -65029,6 +65029,7 @@
   [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>();
@@ -65145,6 +65146,14 @@
 
    <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
@@ -65204,6 +65213,14 @@
 
    </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>
@@ -65299,6 +65316,10 @@
   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>

Modified: source
===================================================================
--- source	2013-06-14 18:15:48 UTC (rev 7976)
+++ source	2013-06-14 18:28:46 UTC (rev 7977)
@@ -72520,6 +72520,7 @@
   [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>();
@@ -72645,6 +72646,14 @@
 
    <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>
@@ -72710,6 +72719,14 @@
 
    </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>
@@ -72821,6 +72838,10 @@
   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>




More information about the Commit-Watchers mailing list