[html5] r6208 - [giow] (2) Fire 'load' on the about:blank document created by window.open()

whatwg at whatwg.org whatwg at whatwg.org
Thu Jun 9 15:36:50 PDT 2011


Author: ianh
Date: 2011-06-09 15:36:48 -0700 (Thu, 09 Jun 2011)
New Revision: 6208

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Fire 'load' on the about:blank document created by window.open()

Modified: complete.html
===================================================================
--- complete.html	2011-06-09 18:45:55 UTC (rev 6207)
+++ complete.html	2011-06-09 22:36:48 UTC (rev 6208)
@@ -61454,17 +61454,28 @@
   agent could override the selection of the target browsing context to
   instead target a new tab.</p>
 
-  <p>Then, the user agent must <a href=#navigate>navigate</a><!--DONAV
-  window.open()--> the selected <a href=#browsing-context>browsing context</a> to the
-  <a href=#absolute-url>absolute URL</a> (or error) obtained from <a href=#resolve-a-url title="resolve a url">resolving</a> <var title="">url</var>
-  earlier. If the <var title="">replace</var> is true or if the
-  <a href=#browsing-context>browsing context</a> was just created as part of <a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>the
-  rules for choosing a browsing context given a browsing context
-  name</a>, then <a href=#replacement-enabled title="replacement enabled">replacement must
-  be enabled</a>. The navigation must be done with the <a href="#script's-browsing-context" title="script's browsing context">browsing context</a> of the
-  <a href=#entry-script>entry script</a> as the <a href=#source-browsing-context>source browsing
-  context</a>.</p>
+  <p>Then, if <var title="">url</var> is not
+  "<code><a href=#about:blank>about:blank</a></code>", the user agent must
+  <a href=#navigate>navigate</a><!--DONAV window.open()--> the selected
+  <a href=#browsing-context>browsing context</a> to the <a href=#absolute-url>absolute URL</a> (or
+  error) obtained from <a href=#resolve-a-url title="resolve a url">resolving</a>
+  <var title="">url</var> earlier. If the <var title="">replace</var>
+  is true or if the <a href=#browsing-context>browsing context</a> was just created as
+  part of <a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>the rules for choosing a browsing context given a
+  browsing context name</a>, then <a href=#replacement-enabled title="replacement
+  enabled">replacement must be enabled</a>. The navigation must be
+  done with the <a href="#script's-browsing-context" title="script's browsing context">browsing
+  context</a> of the <a href=#entry-script>entry script</a> as the <a href=#source-browsing-context>source
+  browsing context</a>.</p>
 
+  <p>If <var title="">url</var> <em>is</em>
+  "<code><a href=#about:blank>about:blank</a></code>", the user agent must instead <a href=#queue-a-task>queue
+  a task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-load>load</code> at the the selected <a href=#browsing-context>browsing
+  context</a>'s <code><a href=#window>Window</a></code> object, but with its <code title=dom-event-target><a href=#dom-event-target>target</a></code> set to the the selected
+  <a href=#browsing-context>browsing context</a>'s <code><a href=#window>Window</a></code> object's
+  <code><a href=#document>Document</a></code> object (and the <code title=dom-event-currentTarget>currentTarget</code> set to the
+  <code><a href=#window>Window</a></code> object).</p>
+
   <p>The method must return the <code><a href=#windowproxy>WindowProxy</a></code> object of the
   <a href=#browsing-context>browsing context</a> that was navigated, or null if no
   browsing context was navigated.</p>

Modified: index
===================================================================
--- index	2011-06-09 18:45:55 UTC (rev 6207)
+++ index	2011-06-09 22:36:48 UTC (rev 6208)
@@ -61447,17 +61447,28 @@
   agent could override the selection of the target browsing context to
   instead target a new tab.</p>
 
-  <p>Then, the user agent must <a href=#navigate>navigate</a><!--DONAV
-  window.open()--> the selected <a href=#browsing-context>browsing context</a> to the
-  <a href=#absolute-url>absolute URL</a> (or error) obtained from <a href=#resolve-a-url title="resolve a url">resolving</a> <var title="">url</var>
-  earlier. If the <var title="">replace</var> is true or if the
-  <a href=#browsing-context>browsing context</a> was just created as part of <a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>the
-  rules for choosing a browsing context given a browsing context
-  name</a>, then <a href=#replacement-enabled title="replacement enabled">replacement must
-  be enabled</a>. The navigation must be done with the <a href="#script's-browsing-context" title="script's browsing context">browsing context</a> of the
-  <a href=#entry-script>entry script</a> as the <a href=#source-browsing-context>source browsing
-  context</a>.</p>
+  <p>Then, if <var title="">url</var> is not
+  "<code><a href=#about:blank>about:blank</a></code>", the user agent must
+  <a href=#navigate>navigate</a><!--DONAV window.open()--> the selected
+  <a href=#browsing-context>browsing context</a> to the <a href=#absolute-url>absolute URL</a> (or
+  error) obtained from <a href=#resolve-a-url title="resolve a url">resolving</a>
+  <var title="">url</var> earlier. If the <var title="">replace</var>
+  is true or if the <a href=#browsing-context>browsing context</a> was just created as
+  part of <a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>the rules for choosing a browsing context given a
+  browsing context name</a>, then <a href=#replacement-enabled title="replacement
+  enabled">replacement must be enabled</a>. The navigation must be
+  done with the <a href="#script's-browsing-context" title="script's browsing context">browsing
+  context</a> of the <a href=#entry-script>entry script</a> as the <a href=#source-browsing-context>source
+  browsing context</a>.</p>
 
+  <p>If <var title="">url</var> <em>is</em>
+  "<code><a href=#about:blank>about:blank</a></code>", the user agent must instead <a href=#queue-a-task>queue
+  a task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-load>load</code> at the the selected <a href=#browsing-context>browsing
+  context</a>'s <code><a href=#window>Window</a></code> object, but with its <code title=dom-event-target><a href=#dom-event-target>target</a></code> set to the the selected
+  <a href=#browsing-context>browsing context</a>'s <code><a href=#window>Window</a></code> object's
+  <code><a href=#document>Document</a></code> object (and the <code title=dom-event-currentTarget>currentTarget</code> set to the
+  <code><a href=#window>Window</a></code> object).</p>
+
   <p>The method must return the <code><a href=#windowproxy>WindowProxy</a></code> object of the
   <a href=#browsing-context>browsing context</a> that was navigated, or null if no
   browsing context was navigated.</p>

Modified: source
===================================================================
--- source	2011-06-09 18:45:55 UTC (rev 6207)
+++ source	2011-06-09 22:36:48 UTC (rev 6208)
@@ -70015,19 +70015,31 @@
   agent could override the selection of the target browsing context to
   instead target a new tab.</p>
 
-  <p>Then, the user agent must <span>navigate</span><!--DONAV
-  window.open()--> the selected <span>browsing context</span> to the
-  <span>absolute URL</span> (or error) obtained from <span
-  title="resolve a url">resolving</span> <var title="">url</var>
-  earlier. If the <var title="">replace</var> is true or if the
-  <span>browsing context</span> was just created as part of <span>the
-  rules for choosing a browsing context given a browsing context
-  name</span>, then <span title="replacement enabled">replacement must
-  be enabled</span>. The navigation must be done with the <span
-  title="script's browsing context">browsing context</span> of the
-  <span>entry script</span> as the <span>source browsing
-  context</span>.</p>
+  <p>Then, if <var title="">url</var> is not
+  "<code>about:blank</code>", the user agent must
+  <span>navigate</span><!--DONAV window.open()--> the selected
+  <span>browsing context</span> to the <span>absolute URL</span> (or
+  error) obtained from <span title="resolve a url">resolving</span>
+  <var title="">url</var> earlier. If the <var title="">replace</var>
+  is true or if the <span>browsing context</span> was just created as
+  part of <span>the rules for choosing a browsing context given a
+  browsing context name</span>, then <span title="replacement
+  enabled">replacement must be enabled</span>. The navigation must be
+  done with the <span title="script's browsing context">browsing
+  context</span> of the <span>entry script</span> as the <span>source
+  browsing context</span>.</p>
 
+  <p>If <var title="">url</var> <em>is</em>
+  "<code>about:blank</code>", the user agent must instead <span>queue
+  a task</span> to <span>fire a simple event</span> named <code
+  title="event-load">load</code> at the the selected <span>browsing
+  context</span>'s <code>Window</code> object, but with its <code
+  title="dom-event-target">target</code> set to the the selected
+  <span>browsing context</span>'s <code>Window</code> object's
+  <code>Document</code> object (and the <code
+  title="dom-event-currentTarget">currentTarget</code> set to the
+  <code>Window</code> object).</p></li>
+
   <p>The method must return the <code>WindowProxy</code> object of the
   <span>browsing context</span> that was navigated, or null if no
   browsing context was navigated.</p>




More information about the Commit-Watchers mailing list