d56617e5d0
* chore: avoid appending git version to the exported patches * fix no-eol at end of v8 patch
20 lines
929 B
Diff
20 lines
929 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
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.
|
|
|
|
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
|
|
index 061ad189c46d5f0f1afb09052cc21aeb7e60a744..d64ba4f20d49a57b29e1ad5bc7ac53616974efc9 100644
|
|
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
|
|
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
|
|
@@ -1488,6 +1488,8 @@ void ResourceDispatcherHostImpl::BeginNavigationRequest(
|
|
!policy->IsWebSafeScheme(info.common_params.url.scheme()) &&
|
|
!is_external_protocol;
|
|
|
|
+ non_web_url_in_guest = false;
|
|
+
|
|
if (is_shutdown_ || non_web_url_in_guest) {
|
|
url_loader_client->OnComplete(
|
|
network::URLLoaderCompletionStatus(net::ERR_ABORTED));
|