Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Issue 418103003: Add a frame sequence number to HistoryItem (Closed)

Created:
6 years, 5 months ago by Nate Chapin
Modified:
6 years, 5 months ago
CC:
blink-reviews, jamesr, dglazkov+blink, gavinp+loader_chromium.org, abarth-chromium
Project:
blink
Visibility:
Public.

Description

Add a frame sequence number to HistoryItem This will be used by the history system in content/renderer/ to disambiguate frames during history navigation. The current system uses two factors to try to find frames for navigation: frame routing ids, and frame unique names. Routing ids can't be stored for later use, because they might get saved to disk and collide with routing ids in a future renderer process. Unique names are more reliable...unless a website modifies window.name, at which point we try to do lookups based on a stale name and can't find the right frame. Instead, we introduce a frame sequence number. Like the existing item and document sequence numbers, these can be saved to disk with a low chance of collisions. These can then be reliably used during the current session to match frames for back/forward navigations. BUG=393227, 395097 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178947

Patch Set 1 #

Total comments: 1

Patch Set 2 : More descriptive comment for m_frameSequenceNumber #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -0 lines) Patch
M Source/core/loader/HistoryItem.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M Source/core/loader/HistoryItem.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebHistoryItem.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M public/web/WebHistoryItem.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Nate Chapin
darin, would you mind taking a look?
6 years, 5 months ago (2014-07-24 18:59:31 UTC) #1
Nate Chapin
On 2014/07/24 18:59:31, Nate Chapin wrote: > darin, would you mind taking a look? https://codereview.chromium.org/412303002/ ...
6 years, 5 months ago (2014-07-24 19:00:38 UTC) #2
darin (slow to review)
LGTM https://codereview.chromium.org/418103003/diff/1/Source/core/loader/HistoryItem.h File Source/core/loader/HistoryItem.h (right): https://codereview.chromium.org/418103003/diff/1/Source/core/loader/HistoryItem.h#newcode130 Source/core/loader/HistoryItem.h:130: // Used to match frames across serialization/deserialization more ...
6 years, 5 months ago (2014-07-25 04:39:06 UTC) #3
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 5 months ago (2014-07-25 17:26:34 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/418103003/20001
6 years, 5 months ago (2014-07-25 17:27:34 UTC) #5
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 5 months ago (2014-07-25 17:28:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/418103003/20001
6 years, 5 months ago (2014-07-25 17:28:20 UTC) #7
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 18:27:08 UTC) #8
Message was sent while issue was closed.
Change committed as 178947

Powered by Google App Engine
This is Rietveld 408576698