2018-10-24 18:24:11 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-09-21 00:30:26 +00:00
|
|
|
From: Cheng Zhao <zcbenz@gmail.com>
|
|
|
|
Date: Thu, 20 Sep 2018 17:49:42 -0700
|
|
|
|
Subject: allow_webview_file_url.patch
|
|
|
|
|
|
|
|
Allow webview to load non-web URLs.
|
|
|
|
|
2018-09-14 05:02:16 +00:00
|
|
|
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
|
2019-01-08 23:59:47 +00:00
|
|
|
index 83b81f3e28f5f4f3a9fe3c2146c50a966f7e2ec2..d0f2bde4f6f7bb1a8b6cfc5dc990cb30d4432504 100644
|
2018-09-14 05:02:16 +00:00
|
|
|
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
|
|
|
|
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
|
2019-01-08 23:59:47 +00:00
|
|
|
@@ -1462,6 +1462,8 @@ void ResourceDispatcherHostImpl::BeginNavigationRequest(
|
2018-09-14 05:02:16 +00:00
|
|
|
!policy->IsWebSafeScheme(info.common_params.url.scheme()) &&
|
|
|
|
!is_external_protocol;
|
|
|
|
|
|
|
|
+ non_web_url_in_guest = false;
|
|
|
|
+
|
2018-09-14 18:03:43 +00:00
|
|
|
if (is_shutdown_ || non_web_url_in_guest) {
|
|
|
|
url_loader_client->OnComplete(
|
|
|
|
network::URLLoaderCompletionStatus(net::ERR_ABORTED));
|