Chromium Code Reviews| Index: android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc |
| diff --git a/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc b/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc |
| index 642d9431309955184b8b853625c4effdb9700fb2..a5d8514a4f80cc22890c2b7d51d2c62af2f5552d 100644 |
| --- a/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc |
| +++ b/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc |
| @@ -223,23 +223,12 @@ void AwResourceDispatcherHostDelegate::RequestBeginning( |
| throttles->push_back(new IoThreadClientThrottle( |
| child_id, route_id, request)); |
| - bool allow_intercepting = |
| - // We allow intercepting navigations within subframes, but only if the |
| - // scheme other than http or https. This is because the embedder |
| - // can't distinguish main frame and subframe callbacks (which could lead |
| - // to broken content if the embedder decides to not ignore the main frame |
| - // navigation, but ignores the subframe navigation). |
| - // The reason this is supported at all is that certain JavaScript-based |
| - // frameworks use iframe navigation as a form of communication with the |
| - // embedder. |
| - (resource_type == ResourceType::MAIN_FRAME || |
| - (resource_type == ResourceType::SUB_FRAME && |
| - !request->url().SchemeIs(content::kHttpScheme) && |
| - !request->url().SchemeIs(content::kHttpsScheme))); |
| - if (allow_intercepting) { |
| + // We allow intercepting only navigations within main frames. This |
|
mkosiba (inactive)
2013/10/17 10:27:45
This is misleading. We're not really using the thr
sgurun-gerrit only
2013/12/06 00:17:48
Done.
|
| + // is used to post onPageStarted. We handle shouldOverrideUrlLoading |
| + // via a sync IPC. |
| + if (resource_type == ResourceType::MAIN_FRAME) |
| throttles->push_back(InterceptNavigationDelegate::CreateThrottleFor( |
| request)); |
| - } |
| } |
| void AwResourceDispatcherHostDelegate::DownloadStarting( |