Skip to content

Commit

Permalink
[giow] (2) Fire 'load' on the about:blank document created by window.…
Browse files Browse the repository at this point in the history
…open()

git-svn-id: http://svn.whatwg.org/webapps@6208 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 9, 2011
1 parent fd5b464 commit 6358aba
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 32 deletions.
31 changes: 21 additions & 10 deletions complete.html
Expand Up @@ -61454,16 +61454,27 @@ <h4 id=apis-for-creating-and-navigating-browsing-contexts-by-name><span class=se
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
Expand Down
31 changes: 21 additions & 10 deletions index
Expand Up @@ -61447,16 +61447,27 @@ interface <dfn id=window>Window</dfn> {
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
Expand Down
36 changes: 24 additions & 12 deletions source
Expand Up @@ -70015,18 +70015,30 @@ interface <dfn>Window</dfn> {
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
Expand Down

0 comments on commit 6358aba

Please sign in to comment.