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

Unified Diff: extensions/browser/extension_protocols.cc

Issue 2316383002: PlzNavigate: only allow main frame resource loads for extensions (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_protocols.cc
diff --git a/extensions/browser/extension_protocols.cc b/extensions/browser/extension_protocols.cc
index 7e73dc89fd08ea32e64c4f9774c29bbd55704726..2e68e37defa366d90e72da13f386be5dc6349cf4 100644
--- a/extensions/browser/extension_protocols.cc
+++ b/extensions/browser/extension_protocols.cc
@@ -369,7 +369,7 @@ bool AllowExtensionResourceLoad(net::URLRequest* request,
// PlzNavigate: frame navigations to extensions have already been checked in
// the ExtensionNavigationThrottle.
if (info->GetChildID() == -1 &&
- content::IsResourceTypeFrame(info->GetResourceType()) &&
+ info->GetResourceType() == content::RESOURCE_TYPE_MAIN_FRAME &&
content::IsBrowserSideNavigationEnabled()) {
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698