diff options
Diffstat (limited to 'android_webview/native/aw_contents_io_thread_client_impl.cc')
-rw-r--r-- | android_webview/native/aw_contents_io_thread_client_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android_webview/native/aw_contents_io_thread_client_impl.cc b/android_webview/native/aw_contents_io_thread_client_impl.cc index 81ea0de..8002851 100644 --- a/android_webview/native/aw_contents_io_thread_client_impl.cc +++ b/android_webview/native/aw_contents_io_thread_client_impl.cc @@ -197,7 +197,8 @@ AwContentsIoThreadClientImpl::ShouldInterceptRequest( return scoped_ptr<InterceptedRequestData>(); const content::ResourceRequestInfo* info = content::ResourceRequestInfo::ForRequest(request); - bool is_main_frame = info && info->IsMainFrame(); + bool is_main_frame = info && + info->GetResourceType() == ResourceType::MAIN_FRAME; JNIEnv* env = AttachCurrentThread(); ScopedJavaLocalRef<jstring> jstring_url = |