Summary: | [chromium] querying the current HistoryItem during a back/forward navigation causes loss of scroll offset and other state | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Darin Fisher (:fishd, Google) <fishd> | ||||
Component: | WebKit API | Assignee: | Darin Fisher (:fishd, Google) <fishd> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | dglazkov | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Darin Fisher (:fishd, Google)
2010-03-19 00:12:57 PDT
Created attachment 51131 [details]
v1 patch
The basic fix here is to suppress updating the current history item while we are still loading. I decided to exclude normal, new navigations since a user might start interacting with the page before it is fully loaded. Obviously, this could be the case for other types of navigations as well, so there may be a better overall solution. This patch is however a significant improvement for a pretty nasty data-loss bug.
Comment on attachment 51131 [details]
v1 patch
nice find!
Can this be regression-proofed with a test?
It would require an API test. I was going to add such a test to Chromium. Sounds good. Landed as http://trac.webkit.org/changeset/56244 |