Index: content/browser/loader/resource_dispatcher_host_impl.cc |
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc |
index 766a2cf21e55d75922496ebe7ff91156ada0fc22..662c27da2a1db9f331f3faf896cc65aa74b584b7 100644 |
--- a/content/browser/loader/resource_dispatcher_host_impl.cc |
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc |
@@ -1131,7 +1131,8 @@ void ResourceDispatcherHostImpl::BeginRequest( |
// Install a CrossSiteResourceHandler for all main frame requests. This will |
// let us check whether a transfer is required and pause for the unload |
// handler either if so or if a cross-process navigation is already under way. |
- if (request_data.resource_type == ResourceType::MAIN_FRAME && |
+ if ((request_data.resource_type == ResourceType::MAIN_FRAME || |
+ request_data.resource_type == ResourceType::SUB_FRAME) && |
process_type == PROCESS_TYPE_RENDERER) { |
handler.reset(new CrossSiteResourceHandler(handler.Pass(), request)); |
} |