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

Issue 1189413005: Fix race when reloading original URL (Closed)

Created:
5 years, 6 months ago by lfg
Modified:
5 years, 5 months ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, creis+watch_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix race when reloading original URL. Fixes an issue where the browser's last committed entry and the renderer can become out of sync when reloading the original requested URL, which causes the browser to kill the renderer process. BUG=491861 TBR=jam@chromium.org for chromium.fyi.json Committed: https://crrev.com/573e8be6d639b7066a270ae99d02e829e10b90dd Cr-Commit-Position: refs/heads/master@{#338864}

Patch Set 1 : Adding test #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Total comments: 10

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : fixing include #

Total comments: 14

Patch Set 9 : addressing Charlie's comments #

Patch Set 10 : fixing unittests #

Total comments: 22

Patch Set 11 : addressing Charlie's comments #

Total comments: 2

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -40 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -10 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +76 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigation_request.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +34 lines, -19 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M testing/buildbot/chromium.fyi.json View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
lfg
Hi Avi, please take a look.
5 years, 6 months ago (2015-06-22 22:15:52 UTC) #2
Charlie Reis
I'm not sure about the cause of the crash in the browsertest yet, but here's ...
5 years, 5 months ago (2015-07-06 20:56:39 UTC) #4
lfg
Please take another look. https://codereview.chromium.org/1189413005/diff/80001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/1189413005/diff/80001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode2155 content/browser/frame_host/navigation_controller_impl_browsertest.cc:2155: for (int i = 0; ...
5 years, 5 months ago (2015-07-08 22:09:29 UTC) #5
Charlie Reis
Thanks. I'm still wary about using two different URLs throughout NavigateToEntry, though. Some thoughts below ...
5 years, 5 months ago (2015-07-08 23:23:38 UTC) #6
lfg
Another round of changes, please take a look. https://codereview.chromium.org/1189413005/diff/80001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/1189413005/diff/80001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode2179 content/browser/frame_host/navigation_controller_impl_browsertest.cc:2179: EXPECT_TRUE(shell()->web_contents()->IsLoading()); ...
5 years, 5 months ago (2015-07-14 18:58:31 UTC) #7
Charlie Reis
THanks for the updates! LGTM with nits. You can disable the test on the Site ...
5 years, 5 months ago (2015-07-14 22:23:10 UTC) #8
lfg
https://codereview.chromium.org/1189413005/diff/180001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/1189413005/diff/180001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode2148 content/browser/frame_host/navigation_controller_impl_browsertest.cc:2148: // This tests for a race in ReloadOriginalRequest. Not ...
5 years, 5 months ago (2015-07-14 22:47:28 UTC) #9
Charlie Reis
LGTM with nit. One possible concern: I'm worried about other parts of the NavigationEntry that ...
5 years, 5 months ago (2015-07-14 23:02:24 UTC) #10
lfg
I've created bug 510251 so we don't forget to revisit this issue. https://codereview.chromium.org/1189413005/diff/200001/testing/buildbot/chromium.fyi.json File testing/buildbot/chromium.fyi.json ...
5 years, 5 months ago (2015-07-14 23:11:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1189413005/220001
5 years, 5 months ago (2015-07-15 15:31:12 UTC) #14
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 5 months ago (2015-07-15 16:00:22 UTC) #15
commit-bot: I haz the power
5 years, 5 months ago (2015-07-15 16:01:18 UTC) #16
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/573e8be6d639b7066a270ae99d02e829e10b90dd
Cr-Commit-Position: refs/heads/master@{#338864}

Powered by Google App Engine
This is Rietveld 408576698