[Bug 10365] popstate event fires after onload (first page visit) -- intended behavior? would be annoying if there was a script that ajax loaded a page at onpopstate, and hand typing in a url, the page is returned by the server, and then onpopstate fires after onload,


--- Comment #5 from Ian 'Hixie' Hickson <ian@hixie.ch> 2010-11-13 20:31:35 UTC ---
The comment in http://code.google.com/p/chromium/issues/detail?id=63040 is
right, I made a mistake: popstate will fire after load with a 'null' state
object, even without going back/forward. I missed that the state object is set
to null if history traversal occurs without state (we changed that at some

This is as designed, though; the popstate event handler is expected to grab the
appropriate data given the provided state object. It's easy to not grab data if
the state is null.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 13 November 2010 20:31:40 UTC