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 1245433002: Don't clear the forward history when replacing entries. (Closed)

Created:
5 years, 5 months ago by Charlie Reis
Modified:
5 years, 5 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org, ncarter (slow), site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't clear the forward history when replacing entries. This is a prerequisite to fixing the classification of location.replace, which should generate a new NavigationEntry and not update the old one in place. BUG=317872 TEST=Forward history still in place after cross-process location.replace. Committed: https://crrev.com/ee17e93a2684e2420ab932432edce920b3355a8e Cr-Commit-Position: refs/heads/master@{#339281}

Patch Set 1 #

Patch Set 2 : Add test #

Total comments: 2

Patch Set 3 : Update test #

Patch Set 4 : Fix leak #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -6 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 1 chunk +16 lines, -5 lines 5 comments Download
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 1 chunk +22 lines, -1 line 0 comments Download

Messages

Total messages: 17 (4 generated)
Charlie Reis
Avi, can you take a look? This will be needed as I fix https://codereview.chromium.org/1225593003/ to ...
5 years, 5 months ago (2015-07-16 19:29:54 UTC) #2
Avi (use Gerrit)
On 2015/07/16 19:29:54, Charlie Reis wrote: > It's a little crazy to me that this ...
5 years, 5 months ago (2015-07-16 19:58:11 UTC) #3
Avi (use Gerrit)
https://codereview.chromium.org/1245433002/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/1245433002/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode201 content/browser/frame_host/navigation_controller_impl_browsertest.cc:201: EXPECT_TRUE(controller.CanGoForward()); Are you sure that this change keeps testing ...
5 years, 5 months ago (2015-07-16 20:00:16 UTC) #4
Charlie Reis
https://codereview.chromium.org/1245433002/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/1245433002/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode201 content/browser/frame_host/navigation_controller_impl_browsertest.cc:201: EXPECT_TRUE(controller.CanGoForward()); On 2015/07/16 20:00:16, Avi wrote: > Are you ...
5 years, 5 months ago (2015-07-16 20:17:43 UTC) #5
Charlie Reis
Looks like I've got a memory leak; I'll take a look.
5 years, 5 months ago (2015-07-16 21:29:29 UTC) #6
Charlie Reis
I'm sad that ScopedVectors behave this way, but I think this should fix it. PTAL. ...
5 years, 5 months ago (2015-07-16 23:51:15 UTC) #7
Avi (use Gerrit)
lgtm https://codereview.chromium.org/1245433002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1245433002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode1660 content/browser/frame_host/navigation_controller_impl.cc:1660: // ScopedVectors don't automatically delete the replaced value, ...
5 years, 5 months ago (2015-07-17 02:17:25 UTC) #8
dcheng
https://codereview.chromium.org/1245433002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1245433002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode1660 content/browser/frame_host/navigation_controller_impl.cc:1660: // ScopedVectors don't automatically delete the replaced value, so ...
5 years, 5 months ago (2015-07-17 03:49:59 UTC) #10
ncarter (slow)
https://codereview.chromium.org/1245433002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1245433002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode1660 content/browser/frame_host/navigation_controller_impl.cc:1660: // ScopedVectors don't automatically delete the replaced value, so ...
5 years, 5 months ago (2015-07-17 16:54:20 UTC) #12
Charlie Reis
https://codereview.chromium.org/1245433002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1245433002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode1660 content/browser/frame_host/navigation_controller_impl.cc:1660: // ScopedVectors don't automatically delete the replaced value, so ...
5 years, 5 months ago (2015-07-17 17:00:11 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1245433002/60001
5 years, 5 months ago (2015-07-17 17:33:00 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 5 months ago (2015-07-17 17:56:29 UTC) #16
commit-bot: I haz the power
5 years, 5 months ago (2015-07-17 17:57:42 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ee17e93a2684e2420ab932432edce920b3355a8e
Cr-Commit-Position: refs/heads/master@{#339281}

Powered by Google App Engine
This is Rietveld 408576698