[Webkit-unassigned] [Bug 138753] Wrong (off-by-1) navigation snapshots shown after a mix of gesture and button back/forward navigation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 14 12:54:25 PST 2014


--- Comment #1 from mitz at webkit.org <mitz at webkit.org> ---
It looks like when using the button to navigate, by the time WebPageProxy::willChangeCurrentHistoryItemForMainFrame() is called, the current item has already changed. In particular, WebPageProxy::backForwardGoToItem() is called before WebPageProxy::willChangeCurrentHistoryItemForMainFrame().

This call ordering happens not only in the button navigation case, but also in the navigation gesture case, but in the latter we are protected by the early return in ViewSnapshotStore::recordSnapshot() as we are still showing a snapshot.

I think we can simply make it WebBackForwardList’s job to record a snapshot right before it changes what currentItem() would return.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141114/05675699/attachment-0002.html>

More information about the webkit-unassigned mailing list