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

Unified Diff: extensions/browser/extension_protocols.cc

Issue 2042483002: Fix web_accesible_resources enforcement for Site Isolation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_protocols.cc
diff --git a/extensions/browser/extension_protocols.cc b/extensions/browser/extension_protocols.cc
index c97f172607acbc2650537d6895a60a5704da4208..0ae21efbf1cf15bc60b61bc88cce195206b79209 100644
--- a/extensions/browser/extension_protocols.cc
+++ b/extensions/browser/extension_protocols.cc
@@ -422,8 +422,8 @@ ExtensionProtocolHandler::MaybeCreateJob(
// TODO(mpcomplete): better error code.
if (!AllowExtensionResourceLoad(
request, is_incognito_, extension, extension_info_map_)) {
- return new net::URLRequestErrorJob(
- request, network_delegate, net::ERR_ADDRESS_UNREACHABLE);
+ return new net::URLRequestErrorJob(request, network_delegate,
+ net::ERR_BLOCKED_BY_CLIENT);
nasko 2016/06/03 21:37:03 I've changed this to be consistent with the return
}
// If this is a disabled extension only allow the icon to load.

Powered by Google App Engine
This is Rietveld 408576698