W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > November 2010

[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,

From: <bugzilla@jessica.w3.org>
Date: Sat, 13 Nov 2010 20:31:35 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1PHMl5-0001sq-Pr@jessica.w3.org>

--- 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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:01 UTC