From ab92cfd17487655d2960140cb94a795cead55eed Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Thu, 21 Mar 2019 20:08:58 -0700 Subject: [PATCH] fix: enable_file_url_support and enable_data_url_support have been removed Unsure how the change in default of file_url_support affects us Refs: https://chromium-review.googlesource.com/c/chromium/src/+/1512337 --- atom/browser/net/system_network_context_manager.cc | 2 -- atom/browser/net/url_request_context_getter.cc | 2 -- 2 files changed, 4 deletions(-) diff --git a/atom/browser/net/system_network_context_manager.cc b/atom/browser/net/system_network_context_manager.cc index eac424117fcc..3882a213ad2d 100644 --- a/atom/browser/net/system_network_context_manager.cc +++ b/atom/browser/net/system_network_context_manager.cc @@ -249,8 +249,6 @@ SystemNetworkContextManager::CreateNetworkContextParams() { network_context_params->http_cache_enabled = false; - if (!base::FeatureList::IsEnabled(network::features::kNetworkService)) - network_context_params->enable_file_url_support = true; #if !BUILDFLAG(DISABLE_FTP_SUPPORT) network_context_params->enable_ftp_url_support = true; #endif diff --git a/atom/browser/net/url_request_context_getter.cc b/atom/browser/net/url_request_context_getter.cc index d36b1cc9ef37..3c582562178c 100644 --- a/atom/browser/net/url_request_context_getter.cc +++ b/atom/browser/net/url_request_context_getter.cc @@ -156,8 +156,6 @@ URLRequestContextGetter::Handle::CreateNetworkContextParams() { net::HttpUtil::GenerateAcceptLanguageHeader( AtomBrowserClient::Get()->GetApplicationLocale()); - network_context_params->enable_data_url_support = false; - if (!browser_context_->IsOffTheRecord()) { auto base_path = browser_context_->GetPath(); network_context_params->http_cache_path =