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

Issue 475783002: PlzNavigate: add cancel navigation logic for uncommitted requests (Closed)

Created:
6 years, 4 months ago by carlosk
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: add cancel navigation logic for uncommitted requests Allows navigation requests to be canceled before they are committed when they become stale. BUG=397998 Committed: https://crrev.com/57c81e9cbddce2d2938ac5a80164aecb6c1b51f2 Cr-Commit-Position: refs/heads/master@{#293484}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Addressed CR comments #

Patch Set 3 : Added tests for the navigation request ID #

Total comments: 1

Patch Set 4 : Merge with upstream changes; todo comment regarding navigation request IDs #

Patch Set 5 : Ignores commits of stale navigation requests #

Total comments: 10

Patch Set 6 : Retrying for the weird link errors; fixed nits. #

Patch Set 7 : Fixed the linking issue. #

Total comments: 25

Patch Set 8 : Addressed CR comments #

Total comments: 2

Patch Set 9 : Addressed Nasko's comments #

Total comments: 4

Patch Set 10 : Added the actual calls to cancel the navigation request #

Total comments: 27

Patch Set 11 : Addressed CR comments and removed the weird Observer. Trying to get this CL through and have the mo… #

Total comments: 10

Patch Set 12 : Addressed CR comments #

Patch Set 13 : Test assertion improvemennts #

Patch Set 14 : Resolving merge conflict #

Patch Set 15 : Fixed failed test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -25 lines) Patch
M content/browser/frame_host/navigation_before_commit_info.h View 1 2 3 4 5 6 3 chunks +6 lines, -1 line 0 comments Download
A + content/browser/frame_host/navigation_before_commit_info.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_request.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +15 lines, -5 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +32 lines, -9 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 11 12 13 4 chunks +31 lines, -0 lines 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 11 12 13 14 5 chunks +55 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -4 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 49 (7 generated)
carlosk
Pleas take a look
6 years, 4 months ago (2014-08-14 13:04:36 UTC) #1
clamy
Thnaks! A few comments below. https://chromiumcodereview.appspot.com/475783002/diff/1/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://chromiumcodereview.appspot.com/475783002/diff/1/content/browser/frame_host/navigation_request.cc#newcode33 content/browser/frame_host/navigation_request.cc:33: int64 NavigationRequest::next_navigation_request_id_ = 1; ...
6 years, 4 months ago (2014-08-14 13:19:07 UTC) #2
carlosk
Thanks. And here are the respective changes. https://chromiumcodereview.appspot.com/475783002/diff/1/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://chromiumcodereview.appspot.com/475783002/diff/1/content/browser/frame_host/navigation_request.cc#newcode33 content/browser/frame_host/navigation_request.cc:33: int64 NavigationRequest::next_navigation_request_id_ ...
6 years, 4 months ago (2014-08-14 17:07:11 UTC) #3
clamy
Thanks! One more styleguide issue. https://chromiumcodereview.appspot.com/475783002/diff/40001/content/browser/frame_host/render_frame_host_manager_unittest.cc File content/browser/frame_host/render_frame_host_manager_unittest.cc (right): https://chromiumcodereview.appspot.com/475783002/diff/40001/content/browser/frame_host/render_frame_host_manager_unittest.cc#newcode1858 content/browser/frame_host/render_frame_host_manager_unittest.cc:1858: const int64 firstNavRequestID = ...
6 years, 4 months ago (2014-08-18 11:51:24 UTC) #4
carlosk
PTAL?
6 years, 4 months ago (2014-08-20 11:18:15 UTC) #5
carlosk
PTAL once more?
6 years, 4 months ago (2014-08-21 11:33:10 UTC) #6
clamy
Thanks! lgtm if you remove the code that is commented in the new test. https://chromiumcodereview.appspot.com/475783002/diff/80001/content/browser/frame_host/render_frame_host_manager_unittest.cc ...
6 years, 4 months ago (2014-08-21 11:48:52 UTC) #7
carlosk
Dear new reviewers: could you PTAL at my 1st CL to Chromium? :) https://chromiumcodereview.appspot.com/475783002/diff/80001/content/browser/frame_host/render_frame_host_manager_unittest.cc File ...
6 years, 4 months ago (2014-08-21 16:28:04 UTC) #8
nasko
Great job on your first CL! I've added a few comments and nits. https://chromiumcodereview.appspot.com/475783002/diff/120001/content/browser/frame_host/navigation_before_commit_info.h File ...
6 years, 4 months ago (2014-08-21 21:53:44 UTC) #9
carlosk
Thanks Nasko. Could you PTAL again? https://chromiumcodereview.appspot.com/475783002/diff/120001/content/browser/frame_host/navigation_before_commit_info.h File content/browser/frame_host/navigation_before_commit_info.h (right): https://chromiumcodereview.appspot.com/475783002/diff/120001/content/browser/frame_host/navigation_before_commit_info.h#newcode11 content/browser/frame_host/navigation_before_commit_info.h:11: #include "base/time/time.h" On ...
6 years, 4 months ago (2014-08-22 13:43:03 UTC) #10
nasko
LGTM with a few comments. https://chromiumcodereview.appspot.com/475783002/diff/120001/content/browser/frame_host/navigation_before_commit_info.h File content/browser/frame_host/navigation_before_commit_info.h (right): https://chromiumcodereview.appspot.com/475783002/diff/120001/content/browser/frame_host/navigation_before_commit_info.h#newcode11 content/browser/frame_host/navigation_before_commit_info.h:11: #include "base/time/time.h" On 2014/08/22 ...
6 years, 4 months ago (2014-08-22 14:00:34 UTC) #11
carlosk
Thanks Nasco. I'll talk with clamy next week about the "when to destroy NavigationRequest" instances ...
6 years, 4 months ago (2014-08-22 16:54:41 UTC) #12
carlosk
Thanks Nasko. I'll talk with clamy next week about the "when to destroy NavigationRequest" instances ...
6 years, 4 months ago (2014-08-22 16:54:48 UTC) #13
davidben
lgtm with minor nit. Sorry for the delay. https://codereview.chromium.org/475783002/diff/160001/content/browser/frame_host/navigation_request.h File content/browser/frame_host/navigation_request.h (right): https://codereview.chromium.org/475783002/diff/160001/content/browser/frame_host/navigation_request.h#newcode39 content/browser/frame_host/navigation_request.h:39: static ...
6 years, 4 months ago (2014-08-25 17:31:34 UTC) #14
carlosk
Patchset #10 (id:180001) has been deleted
6 years, 3 months ago (2014-08-27 14:29:33 UTC) #15
carlosk
Patchset #10 (id:200001) has been deleted
6 years, 3 months ago (2014-08-27 15:25:05 UTC) #16
carlosk
PT-one-more-L. These last changes took a little longer. They include: * Nasko and Camille's conclusion ...
6 years, 3 months ago (2014-08-27 15:32:00 UTC) #17
clamy
Thanks! I think it is getting close to what we want in the end, however ...
6 years, 3 months ago (2014-08-28 12:17:02 UTC) #18
(Do not use) nasko
nasko@google.com changed reviewers: + nasko@google.com
6 years, 3 months ago (2014-08-28 15:55:05 UTC) #19
(Do not use) nasko
Sorry to drag this so long Carlos. I am somewhat confused about the observer you ...
6 years, 3 months ago (2014-08-28 15:55:05 UTC) #20
carlosk
I created the Observer only for testing purposes (at least for now there's no other ...
6 years, 3 months ago (2014-08-29 11:18:28 UTC) #21
carlosk
I see two options now to get this this test done: * I could extend ...
6 years, 3 months ago (2014-08-29 14:14:23 UTC) #22
carlosk
Thanks! I did reply some of the comments do I'd please ask you to take ...
6 years, 3 months ago (2014-08-29 15:54:44 UTC) #23
carlosk
Comments addressed and weird Observer removed. I'm trying to submit this CL now and in ...
6 years, 3 months ago (2014-09-01 13:37:22 UTC) #24
carlosk
Comments addressed and weird Observer removed. I'm trying to submit this CL now and in ...
6 years, 3 months ago (2014-09-01 13:37:25 UTC) #25
nasko
LGTM with a few nits. https://chromiumcodereview.appspot.com/475783002/diff/220001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://chromiumcodereview.appspot.com/475783002/diff/220001/content/browser/frame_host/navigation_request.cc#newcode17 content/browser/frame_host/navigation_request.cc:17: int64 next_navigation_request_id_ = 0; ...
6 years, 3 months ago (2014-09-02 14:10:57 UTC) #26
clamy
Thanks! LGTM
6 years, 3 months ago (2014-09-02 15:01:08 UTC) #27
carlosk
So I think we got to a pretty nice state now. The tests are now ...
6 years, 3 months ago (2014-09-02 15:30:09 UTC) #28
(Do not use) nasko
https://chromiumcodereview.appspot.com/475783002/diff/240001/content/browser/frame_host/render_frame_host_manager_unittest.cc File content/browser/frame_host/render_frame_host_manager_unittest.cc (right): https://chromiumcodereview.appspot.com/475783002/diff/240001/content/browser/frame_host/render_frame_host_manager_unittest.cc#newcode1838 content/browser/frame_host/render_frame_host_manager_unittest.cc:1838: EXPECT_EQ(main_test_rfh(), rfh1); On 2014/09/02 15:30:09, carlosk wrote: > On ...
6 years, 3 months ago (2014-09-02 17:20:28 UTC) #29
carlosk
Latest and greatest with the small improvement on the test assertions. PTAL? https://chromiumcodereview.appspot.com/475783002/diff/240001/content/browser/frame_host/render_frame_host_manager_unittest.cc File content/browser/frame_host/render_frame_host_manager_unittest.cc ...
6 years, 3 months ago (2014-09-03 18:27:00 UTC) #30
nasko
New test code LGTM
6 years, 3 months ago (2014-09-03 18:48:37 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/carlosk@chromium.org/475783002/280001
6 years, 3 months ago (2014-09-03 19:12:02 UTC) #33
commit-bot: I haz the power
Failed to apply patch for content/browser/frame_host/render_frame_host_manager_unittest.cc: While running git apply --index -p1; error: patch failed: ...
6 years, 3 months ago (2014-09-03 23:19:03 UTC) #35
carlosk
I had a merge issue and that's why I'm submitting a new version. Weird thing ...
6 years, 3 months ago (2014-09-04 13:43:19 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/carlosk@chromium.org/475783002/300001
6 years, 3 months ago (2014-09-04 13:44:20 UTC) #38
carlosk
On 2014/09/04 13:43:19, carlosk wrote: > I had a merge issue and that's why I'm ...
6 years, 3 months ago (2014-09-04 13:53:01 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/10036)
6 years, 3 months ago (2014-09-04 16:05:50 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/carlosk@chromium.org/475783002/320001
6 years, 3 months ago (2014-09-04 16:50:48 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/47879)
6 years, 3 months ago (2014-09-04 19:07:57 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/carlosk@chromium.org/475783002/320001
6 years, 3 months ago (2014-09-05 09:04:20 UTC) #47
commit-bot: I haz the power
Committed patchset #15 (id:320001) as 7f063f6e44f47bf1912fb3275536b713d44cdb6b
6 years, 3 months ago (2014-09-05 09:05:59 UTC) #48
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:38:17 UTC) #49
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/57c81e9cbddce2d2938ac5a80164aecb6c1b51f2
Cr-Commit-Position: refs/heads/master@{#293484}

Powered by Google App Engine
This is Rietveld 408576698