Internal firewall: disable parallelizable download not compatible with extension downloads
This commit is contained in:
@@ -14,6 +14,7 @@ License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
|
||||
.../download/android/download_controller.cc | 32 +-
|
||||
.../downloads/offline_page_download_bridge.cc | 32 +-
|
||||
.../content/internal/context_menu_download.cc | 32 +-
|
||||
.../internal/common/download_job_factory.cc | 1 +
|
||||
.../webapk/webapk_single_icon_hasher.cc | 32 +-
|
||||
.../about_flags_cc/Internal-firewall.inc | 8 +
|
||||
net/BUILD.gn | 1 +
|
||||
@@ -40,7 +41,7 @@ License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
|
||||
.../loader/fetch/url_loader/url_loader.cc | 4 +-
|
||||
.../scripts/auditor/auditor.py | 1 +
|
||||
.../scripts/auditor/util.py | 1 +
|
||||
31 files changed, 1657 insertions(+), 22 deletions(-)
|
||||
32 files changed, 1658 insertions(+), 22 deletions(-)
|
||||
create mode 100644 cromite_flags/chrome/browser/about_flags_cc/Internal-firewall.inc
|
||||
create mode 100644 services/firewall/public/BUILD.gn
|
||||
create mode 100644 services/firewall/public/firewall_features.cc
|
||||
@@ -224,6 +225,17 @@ diff --git a/components/download/content/internal/context_menu_download.cc b/com
|
||||
content::Referrer referrer = content::Referrer::SanitizeForRequest(
|
||||
url,
|
||||
content::Referrer(referring_url.GetAsReferrer(), params.referrer_policy));
|
||||
diff --git a/components/download/internal/common/download_job_factory.cc b/components/download/internal/common/download_job_factory.cc
|
||||
--- a/components/download/internal/common/download_job_factory.cc
|
||||
+++ b/components/download/internal/common/download_job_factory.cc
|
||||
@@ -43,6 +43,7 @@ ConnectionType GetConnectionType(net::HttpConnectionInfo connection_info) {
|
||||
// Returns if the download can be parallelized.
|
||||
bool IsParallelizableDownload(const DownloadCreateInfo& create_info,
|
||||
DownloadItem* download_item) {
|
||||
+ if ((true)) return false;
|
||||
if (download_item->GetDownloadFile() &&
|
||||
download_item->GetDownloadFile()->IsMemoryFile()) {
|
||||
return false;
|
||||
diff --git a/components/webapps/browser/android/webapk/webapk_single_icon_hasher.cc b/components/webapps/browser/android/webapk/webapk_single_icon_hasher.cc
|
||||
--- a/components/webapps/browser/android/webapk/webapk_single_icon_hasher.cc
|
||||
+++ b/components/webapps/browser/android/webapk/webapk_single_icon_hasher.cc
|
||||
|
||||
Reference in New Issue
Block a user