| 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;
|
| }
|
|
|