Remove PAC size limit (#3203)

This commit is contained in:
beavailable
2025-02-22 21:17:54 +08:00
committed by GitHub
parent f534f8cfa2
commit 94fa12bcd0
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
--- a/net/proxy_resolution/pac_file_fetcher_impl.cc
+++ b/net/proxy_resolution/pac_file_fetcher_impl.cc
@@ -359,13 +359,6 @@
return false;
}
- // Enforce maximum size bound.
- if (num_bytes + bytes_read_so_far_.size() >
- static_cast<size_t>(max_response_bytes_)) {
- result_code_ = ERR_FILE_TOO_BIG;
- request->Cancel();
- return false;
- }
bytes_read_so_far_.append(buf_->data(), num_bytes);
return true;

View File

@@ -108,3 +108,4 @@ extra/ungoogled-chromium/add-flag-to-remove-client-hints.patch
extra/ungoogled-chromium/disable-downloads-page-referrer-url.patch
extra/ungoogled-chromium/enable-extra-locales.patch
extra/ungoogled-chromium/disable-chromelabs.patch
extra/ungoogled-chromium/remove-pac-size-limit.patch