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

Issue 2657813004: PlzNavigate: set the error code in NavigationHandle on abort (Closed)

Created:
3 years, 11 months ago by clamy
Modified:
3 years, 10 months ago
Reviewers:
Devlin, nasko
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: set the error code in NavigationHandle on abort This CL ensures that when a NavigationThrottle aborts a navigation, the rigth error code of net::ERR_ABORTED will be set on the NavigationHandle when PlzNavigate is enabled. BUG=681029 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2657813004 Cr-Commit-Position: refs/heads/master@{#449030} Committed: https://chromium.googlesource.com/chromium/src/+/54b81d6a37ba2a48bfd34bf42d954e4c8fe56d93

Patch Set 1 #

Patch Set 2 : PlzNavigate: set the error code in NavigationHandle on abort #

Total comments: 8

Patch Set 3 : Rebase #

Patch Set 4 : Addressed comments #

Patch Set 5 : Rebase #

Patch Set 6 : Reverted throttle result change #

Total comments: 6

Patch Set 7 : Rebase + addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -7 lines) Patch
M content/browser/frame_host/navigation_handle_impl_browsertest.cc View 1 2 3 5 chunks +71 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 3 chunks +13 lines, -5 lines 0 comments Download
M extensions/browser/extension_navigation_throttle.cc View 1 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (23 generated)
clamy
@nasko: PTAL @redvlin: PTAL at the changes in extension. https://codereview.chromium.org/2657813004/diff/20001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/2657813004/diff/20001/content/browser/frame_host/navigation_request.cc#newcode578 content/browser/frame_host/navigation_request.cc:578: ...
3 years, 11 months ago (2017-01-26 15:33:45 UTC) #12
Devlin
https://codereview.chromium.org/2657813004/diff/20001/extensions/browser/extension_navigation_throttle.cc File extensions/browser/extension_navigation_throttle.cc (right): https://codereview.chromium.org/2657813004/diff/20001/extensions/browser/extension_navigation_throttle.cc#newcode93 extensions/browser/extension_navigation_throttle.cc:93: return content::NavigationThrottle::BLOCK_REQUEST; On 2017/01/26 15:33:45, clamy wrote: > Some ...
3 years, 11 months ago (2017-01-26 15:50:17 UTC) #13
Devlin
3 years, 11 months ago (2017-01-26 15:50:18 UTC) #14
clamy
https://codereview.chromium.org/2657813004/diff/20001/extensions/browser/extension_navigation_throttle.cc File extensions/browser/extension_navigation_throttle.cc (right): https://codereview.chromium.org/2657813004/diff/20001/extensions/browser/extension_navigation_throttle.cc#newcode93 extensions/browser/extension_navigation_throttle.cc:93: return content::NavigationThrottle::BLOCK_REQUEST; On 2017/01/26 15:50:17, Devlin (catching up) wrote: ...
3 years, 11 months ago (2017-01-26 15:58:06 UTC) #15
nasko
https://codereview.chromium.org/2657813004/diff/20001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right): https://codereview.chromium.org/2657813004/diff/20001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#newcode896 content/browser/frame_host/navigation_handle_impl_browsertest.cc:896: NavigationThrottle::PROCEED, NavigationThrottle::CANCEL_AND_IGNORE); nit: Should we also ensure that if ...
3 years, 11 months ago (2017-01-26 17:20:18 UTC) #16
clamy
Thanks! https://codereview.chromium.org/2657813004/diff/20001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right): https://codereview.chromium.org/2657813004/diff/20001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#newcode896 content/browser/frame_host/navigation_handle_impl_browsertest.cc:896: NavigationThrottle::PROCEED, NavigationThrottle::CANCEL_AND_IGNORE); On 2017/01/26 17:20:18, nasko wrote: > ...
3 years, 10 months ago (2017-01-27 17:21:51 UTC) #19
clamy
@nasko, devlin: PTAL https://codereview.chromium.org/2657813004/diff/100001/extensions/browser/extension_navigation_throttle.cc File extensions/browser/extension_navigation_throttle.cc (right): https://codereview.chromium.org/2657813004/diff/100001/extensions/browser/extension_navigation_throttle.cc#newcode93 extensions/browser/extension_navigation_throttle.cc:93: return content::NavigationThrottle::BLOCK_REQUEST; I went back to ...
3 years, 10 months ago (2017-02-07 11:58:28 UTC) #24
nasko
LGTM with a couple of comments. https://codereview.chromium.org/2657813004/diff/100001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right): https://codereview.chromium.org/2657813004/diff/100001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#newcode909 content/browser/frame_host/navigation_handle_impl_browsertest.cc:909: shell()->web_contents(), NavigationThrottle::BLOCK_REQUEST, I ...
3 years, 10 months ago (2017-02-07 21:25:26 UTC) #27
jam1
https://codereview.chromium.org/2657813004/diff/100001/extensions/browser/extension_navigation_throttle.cc File extensions/browser/extension_navigation_throttle.cc (right): https://codereview.chromium.org/2657813004/diff/100001/extensions/browser/extension_navigation_throttle.cc#newcode93 extensions/browser/extension_navigation_throttle.cc:93: return content::NavigationThrottle::BLOCK_REQUEST; On 2017/02/07 11:58:28, clamy (slow - catching ...
3 years, 10 months ago (2017-02-08 16:03:41 UTC) #28
Devlin
extensions lgtm
3 years, 10 months ago (2017-02-08 16:10:53 UTC) #29
clamy
Thanks! https://codereview.chromium.org/2657813004/diff/100001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right): https://codereview.chromium.org/2657813004/diff/100001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#newcode909 content/browser/frame_host/navigation_handle_impl_browsertest.cc:909: shell()->web_contents(), NavigationThrottle::BLOCK_REQUEST, On 2017/02/07 21:25:25, nasko (very slow) ...
3 years, 10 months ago (2017-02-08 16:34:17 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2657813004/120001
3 years, 10 months ago (2017-02-08 16:35:01 UTC) #33
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 17:48:54 UTC) #36
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/54b81d6a37ba2a48bfd34bf42d95...

Powered by Google App Engine
This is Rietveld 408576698