RESOLVED FIXED 146446
[WK2] Avoid taking a useless / blank navigation snapshot when navigating after restoring sessionState
https://bugs.webkit.org/show_bug.cgi?id=146446
Summary [WK2] Avoid taking a useless / blank navigation snapshot when navigating afte...
Chris Dumez
Reported 2015-06-29 18:55:47 PDT
We currently take a useless / blank navigation snapshot when navigating after restoring the back / forward list from a sessionState object. This is because we get a current HistoryItem from the sessionState which we have never really navigated to. We then take a navigation snapshot for the current HistoryItem when navigating away as we usually do. However, in this case, the HistoryItem was imported and there is nothing to snapshot. Taking this snapshot is not only wasteful, it can also potentially overwrite the snapshot that was set by the client using WKWebView._saveBackForwardSnapshotForItem() SPI. To address the problem, my proposal is to suppress navigation snapshotting after restoring the back / forward list from a session state until the next committed load.
Attachments
Patch (4.36 KB, patch)
2015-06-29 19:13 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2015-06-29 18:56:03 PDT
Chris Dumez
Comment 2 2015-06-29 19:13:45 PDT
Chris Dumez
Comment 3 2015-06-30 11:09:13 PDT
Comment on attachment 255805 [details] Patch Clearing flags on attachment: 255805 Committed r186122: <http://trac.webkit.org/changeset/186122>
Chris Dumez
Comment 4 2015-06-30 11:09:18 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.