Skip to content

Commit

Permalink
[giow] (3) Keep pages in history even if they were still loaded when …
Browse files Browse the repository at this point in the history
…the user navigated away (but still not if a script did it on its own).

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

git-svn-id: http://svn.whatwg.org/webapps@7882 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 31, 2013
1 parent 9d54bd4 commit 06849eb
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 6 deletions.
20 changes: 18 additions & 2 deletions complete.html
Expand Up @@ -66740,8 +66740,24 @@ <h4 id=the-location-interface><span class=secno>6.5.3 </span>The <code><a href=#

</li>

<li><p>If the <code><a href=#location>Location</a></code> object's <i>relevant <code><a href=#document>Document</a></code></i> has
<a href=#completely-loaded>completely loaded</a>, then act as if the <code title=dom-location-assign><a href=#dom-location-assign>assign()</a></code> method had been called with the new value as its
<li>

<p>If any of the following conditions are met, let <var title="">mode</var> be <i>normal
navigation</i>; otherwise, let it be <i>replace navigation</i>:</p>

<ul class=brief><li>The <code><a href=#location>Location</a></code> object's <i>relevant <code><a href=#document>Document</a></code></i> has
<a href=#completely-loaded>completely loaded</a>, or</li>

<li>In the <a href=#concept-task title=concept-task>task</a> in which the algorithm is running, an
<a href=#activation-behavior>activation behavior</a> is currently being processed whose <code title=event-click><a href=#event-click>click</a></code> event was <a href=#concept-events-trusted title=concept-events-trusted>trusted</a>,
or</li>

<li>In the <a href=#concept-task title=concept-task>task</a> in which the algorithm is running, the event
listener for a <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> <code title=event-click><a href=#event-click>click</a></code> event is being handled.</li>

</ul></li>

<li><p>If <var title="">mode</var> is <i>normal navigation</i>, then act as if the <code title=dom-location-assign><a href=#dom-location-assign>assign()</a></code> method had been called with the new value as its
argument. Otherwise, act as if the <code title=dom-location-replace><a href=#dom-location-replace>replace()</a></code> method had
been called with the new value as its argument.</li>
<!--DONAV location.href, defined in terms of the paragraphs far above-->
Expand Down
20 changes: 18 additions & 2 deletions index
Expand Up @@ -66740,8 +66740,24 @@ State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BU

</li>

<li><p>If the <code><a href=#location>Location</a></code> object's <i>relevant <code><a href=#document>Document</a></code></i> has
<a href=#completely-loaded>completely loaded</a>, then act as if the <code title=dom-location-assign><a href=#dom-location-assign>assign()</a></code> method had been called with the new value as its
<li>

<p>If any of the following conditions are met, let <var title="">mode</var> be <i>normal
navigation</i>; otherwise, let it be <i>replace navigation</i>:</p>

<ul class=brief><li>The <code><a href=#location>Location</a></code> object's <i>relevant <code><a href=#document>Document</a></code></i> has
<a href=#completely-loaded>completely loaded</a>, or</li>

<li>In the <a href=#concept-task title=concept-task>task</a> in which the algorithm is running, an
<a href=#activation-behavior>activation behavior</a> is currently being processed whose <code title=event-click><a href=#event-click>click</a></code> event was <a href=#concept-events-trusted title=concept-events-trusted>trusted</a>,
or</li>

<li>In the <a href=#concept-task title=concept-task>task</a> in which the algorithm is running, the event
listener for a <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> <code title=event-click><a href=#event-click>click</a></code> event is being handled.</li>

</ul></li>

<li><p>If <var title="">mode</var> is <i>normal navigation</i>, then act as if the <code title=dom-location-assign><a href=#dom-location-assign>assign()</a></code> method had been called with the new value as its
argument. Otherwise, act as if the <code title=dom-location-replace><a href=#dom-location-replace>replace()</a></code> method had
been called with the new value as its argument.</li>
<!--DONAV location.href, defined in terms of the paragraphs far above-->
Expand Down
26 changes: 24 additions & 2 deletions source
Expand Up @@ -74660,8 +74660,30 @@ State: &lt;OUTPUT NAME=I>1&lt;/OUTPUT> &lt;INPUT VALUE="Increment" TYPE=BUTTON O

</li>

<li><p>If the <code>Location</code> object's <i>relevant <code>Document</code></i> has
<span>completely loaded</span>, then act as if the <code
<li>

<p>If any of the following conditions are met, let <var title="">mode</var> be <i>normal
navigation</i>; otherwise, let it be <i>replace navigation</i>:</p>

<ul class="brief">

<li>The <code>Location</code> object's <i>relevant <code>Document</code></i> has
<span>completely loaded</span>, or</li>

<li>In the <span title="concept-task">task</span> in which the algorithm is running, an
<span>activation behavior</span> is currently being processed whose <code
title="event-click">click</code> event was <span title="concept-events-trusted">trusted</span>,
or</li>

<li>In the <span title="concept-task">task</span> in which the algorithm is running, the event
listener for a <span title="concept-events-trusted">trusted</span> <code
title="event-click">click</code> event is being handled.</li>

</ul>

</li>

<li><p>If <var title="">mode</var> is <i>normal navigation</i>, then act as if the <code
title="dom-location-assign">assign()</code> method had been called with the new value as its
argument. Otherwise, act as if the <code title="dom-location-replace">replace()</code> method had
been called with the new value as its argument.</p></li>
Expand Down

0 comments on commit 06849eb

Please sign in to comment.