Bug 57979

Summary: Location assignment before onload does not update the current HistoryItem
Product: WebKit Reporter: Mihai Parparita <mihaip>
Component: HistoryAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: beidson, creis, fishd
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Mihai Parparita
Reported 2011-04-06 13:52:44 PDT
With http://trac.webkit.org/changeset/65340 non-user initiated location updates before onload completes were changed to not create a new HistoryItem. However, they don't update the current HistoryItem with the new URL either, which is inconsistent with both Firefox and the HTML spec (which says "On setting, if the Location object's associated Document object has completely loaded, then the user agent must act as if the assign() method had been called with the new value as its argument. Otherwise, the user agent must act as if the replace() method had been called with the new value as its argument." at http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#the-location-interface). Test case at http://persistent.info/webkit/test-cases/crbug-78485.html (check the alert that appears). Originally reported on the Chromium side as http://crbug.com/78485
Attachments
Mihai Parparita
Comment 1 2011-06-30 18:25:10 PDT
*** This bug has been marked as a duplicate of bug 63777 ***
Note You need to log in before you can comment on or make changes to this bug.