DescriptionDon't reuse HistoryItems for multiple navigations
Explicitly propagate shared state instead of implicitly doing so via HistoryItem reuse in FrameLoader::setHistoryItemStateForCommit().
If, for example, a page calls replaceState() while a back/forward navigation is in progress, it would co-op the provisional history item for the back/forward navigation and set its scroll state on it. This state would then get reused when the back/forward navigation actually committed.
BUG=481393
TEST=fast/history/resources/replaceState-during-beforeunload.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196532
Patch Set 1 #Patch Set 2 : +test #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #
Total comments: 2
Patch Set 7 : #
Total comments: 6
Patch Set 8 : Address comments #
Total comments: 1
Patch Set 9 : Don't change the magic number #Patch Set 10 : Rebase #Messages
Total messages: 20 (7 generated)
|