RESOLVED FIXED43282
The currentItem fixup done by BackForwardList::pushStateItem should be moved into HistoryController::pushState
https://bugs.webkit.org/show_bug.cgi?id=43282
Summary The currentItem fixup done by BackForwardList::pushStateItem should be moved ...
Darin Fisher (:fishd, Google)
Reported 2010-07-30 16:14:32 PDT
The currentItem fixup done by BackForwardList::pushStateItem should be moved into HistoryController::pushState The BackForwardList operates on the top-most HistoryItem node. The HistoryController operates on the HistoryItem corresponding to a particular frame.
Attachments
v1 patch (9.60 KB, patch)
2010-07-30 16:49 PDT, Darin Fisher (:fishd, Google)
darin: review+
Darin Fisher (:fishd, Google)
Comment 1 2010-07-30 16:49:04 PDT
Created attachment 63124 [details] v1 patch
Darin Fisher (:fishd, Google)
Comment 2 2010-07-30 16:52:00 PDT
Note: the dereference of m_previousItem in HistoryController::pushState is protected by the null check of m_currentItem at the top of the function. This is because createItemTree has the side-effect of assigning m_previousItem.
Darin Adler
Comment 3 2010-07-30 18:16:10 PDT
Comment on attachment 63124 [details] v1 patch > - HistoryItem* targetItem = m_frame->loader()->history()->currentItem(); LOL, m_frame->loader()->history() is a roundabout way of writing "this"!
Darin Fisher (:fishd, Google)
Comment 4 2010-07-30 20:07:59 PDT
(In reply to comment #3) > (From update of attachment 63124 [details]) > > - HistoryItem* targetItem = m_frame->loader()->history()->currentItem(); > > LOL, m_frame->loader()->history() is a roundabout way of writing "this"! Yup, and I was so proud of myself for avoiding HistoryItem::targetItem() too ;-)
WebKit Review Bot
Comment 5 2010-07-30 21:03:32 PDT
http://trac.webkit.org/changeset/64402 might have broken SnowLeopard Intel Release (Tests)
Darin Fisher (:fishd, Google)
Comment 6 2010-07-30 21:10:46 PDT
(In reply to comment #5) > http://trac.webkit.org/changeset/64402 might have broken SnowLeopard Intel Release (Tests) ^^^ fixed
Adam Barth
Comment 7 2010-08-10 22:51:50 PDT
This patch appears to have been landed.
Note You need to log in before you can comment on or make changes to this bug.