Hi,<div><br></div><div>I've been discussing this issue with Brady Eidson over at <a href="https://bugs.webkit.org/show_bug.cgi?id=33224">https://bugs.webkit.org/show_bug.cgi?id=33224</a>,</div><div>and his interpretation appears to be different.  (I think he may have convinced me too.)</div>
<div><br></div><div>I'd really like some help understanding how pushState is intended to work and to see how that lines up</div><div>with the spec.</div><div><br></div><div>Also, assuming Brady is correct, then I wonder why pushState was designed this way.  It seems strange</div>
<div>to me that entries in session history would disappear when you navigate away from a document that used</div><div>pushState.</div><div><br></div><div>-Darin</div><div><br><br><div class="gmail_quote">On Tue, Jan 5, 2010 at 6:55 PM, Justin Lebar <span dir="ltr"><<a href="mailto:justin.lebar@gmail.com">justin.lebar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">> From my reading of the spec, I would expect the following steps:<br>
> 5. Page A is loaded.<br>
> 6. The load event for Page A is dispatched.<br>
> 7. The popstate event for Page A is dispatched.<br>
<br>
</div>I think this is correct.  A popstate event is always dispatched<br>
whenever a new session history entry is activated (6.10.3).<br>
<font color="#888888"><br>
-Justin<br>
</font><div><div></div><div class="h5"><br>
On Tue, Jan 5, 2010 at 4:53 PM, Darin Fisher <<a href="mailto:darin@chromium.org">darin@chromium.org</a>> wrote:<br>
> I'd like to make sure that I'm understanding the spec for pushState and the<br>
> popstate event properly.<br>
> Suppose, I have the following sequence of events:<br>
> 1. Page A is loaded.<br>
> 2. Page A calls pushState("foo", null).<br>
> 3. The user navigates to Page B.<br>
> 4. The user navigates back to Page A (clicks the back button once).<br>
> Assuming the document of Page A was disposed upon navigation to Page B<br>
> (i.e., that it was not preserved in a page cache), should a popstate event<br>
> be generated as a result of step 4?<br>
> From my reading of the spec, I would expect the following steps:<br>
> 5. Page A is loaded.<br>
> 6. The load event for Page A is dispatched.<br>
> 7. The popstate event for Page A is dispatched.<br>
> Do I understand correctly?<br>
> Thanks,<br>
> -Darin<br>
</div></div></blockquote></div><br></div>