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

Unified Diff: extensions/browser/extension_navigation_throttle.cc

Issue 2657813004: PlzNavigate: set the error code in NavigationHandle on abort (Closed)
Patch Set: PlzNavigate: set the error code in NavigationHandle on abort Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/extension_navigation_throttle.cc
diff --git a/extensions/browser/extension_navigation_throttle.cc b/extensions/browser/extension_navigation_throttle.cc
index 68c0a92e340da9750e1fcff31bd267476f9f0e00..0c06bd83cffa8d41a921eba9972088fcdd0a4561 100644
--- a/extensions/browser/extension_navigation_throttle.cc
+++ b/extensions/browser/extension_navigation_throttle.cc
@@ -90,7 +90,7 @@ ExtensionNavigationThrottle::WillStartRequest() {
is_guest, extension, owner_extension, partition_id, resource_path,
navigation_handle()->GetPageTransition(), &allowed);
if (!allowed)
- return content::NavigationThrottle::CANCEL;
+ return content::NavigationThrottle::BLOCK_REQUEST;
clamy 2017/01/26 15:33:45 Some tests expect this particular return code when
Devlin 2017/01/26 15:50:17 Which tests? I wonder if the return on line 64 sh
clamy 2017/01/26 15:58:06 The issue was with WebViewTests/WebViewTest.Shim_T
nasko 2017/01/26 17:20:18 Let's ensure that we pick the right error code we
clamy 2017/01/27 17:21:51 I've modified the other return, still letting the
}
}

Powered by Google App Engine
This is Rietveld 408576698