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

Unified Diff: extensions/browser/extension_protocols.cc

Issue 2441843002: Fix <webview> subframe resource loads with PlzNavigate. (Closed)
Patch Set: fix NavigationRequest to handle blocking, and fix unit tests Created 4 years, 2 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 | « content/browser/frame_host/navigation_request.cc ('k') | 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 d2c53958ab69341ff8bed0ec408e4da13d9cbaaa..c231083a1b2533c7e094c3d88a128a4ff3f8db8d 100644
--- a/extensions/browser/extension_protocols.cc
+++ b/extensions/browser/extension_protocols.cc
@@ -36,6 +36,7 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/resource_request_info.h"
#include "content/public/common/browser_side_navigation_policy.h"
+#include "content/public/common/resource_type.h"
#include "crypto/secure_hash.h"
#include "crypto/sha2.h"
#include "extensions/browser/content_verifier.h"
@@ -369,7 +370,7 @@ bool AllowExtensionResourceLoad(net::URLRequest* request,
// PlzNavigate: frame navigations to extensions have already been checked in
// the ExtensionNavigationThrottle.
if (info->GetChildID() == -1 &&
- info->GetResourceType() == content::RESOURCE_TYPE_MAIN_FRAME &&
+ content::IsResourceTypeFrame(info->GetResourceType()) &&
content::IsBrowserSideNavigationEnabled()) {
return true;
}
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698