summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/core/ungoogled-chromium/block-requests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium-uc/patches/core/ungoogled-chromium/block-requests.patch')
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/block-requests.patch75
1 files changed, 75 insertions, 0 deletions
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/block-requests.patch b/www/chromium-uc/patches/core/ungoogled-chromium/block-requests.patch
new file mode 100644
index 0000000..1e29eb6
--- /dev/null
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/block-requests.patch
@@ -0,0 +1,75 @@
1## Prevent request attempts
2# chrome://discards/ attempts to use d3 to display the graph
3--- chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc.orig
4+++ chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc
5@@ -286,6 +286,7 @@ OneGoogleBarLoaderImpl::OneGoogleBarLoad
6 OneGoogleBarLoaderImpl::~OneGoogleBarLoaderImpl() = default;
7
8 void OneGoogleBarLoaderImpl::Load(OneGoogleCallback callback) {
9+ return;
10 callbacks_.push_back(std::move(callback));
11
12 // Note: If there is an ongoing request, abandon it. It's possible that
13--- chrome/browser/new_tab_page/promos/promo_service.cc.orig
14+++ chrome/browser/new_tab_page/promos/promo_service.cc
15@@ -138,6 +138,7 @@ PromoService::PromoService(
16 PromoService::~PromoService() = default;
17
18 void PromoService::Refresh() {
19+ return;
20 net::NetworkTrafficAnnotationTag traffic_annotation =
21 net::DefineNetworkTrafficAnnotation("promo_service", R"(
22 semantics {
23--- chrome/browser/resources/discards/graph_doc_template.html.orig
24+++ chrome/browser/resources/discards/graph_doc_template.html
25@@ -78,10 +78,6 @@ URL. As result, this document needs to b
26 }
27
28 </style>
29- <script src="https://ajax.googleapis.com/ajax/libs/d3js/5.7.0/d3.min.js"
30- integrity="sha384-HL96dun1KbYEq6UT/ZlsspAODCyQ+Zp4z318ajUPBPSMzy5dvxl6ziwmnil8/Cpd"
31- crossorigin="anonymous">
32- </script>
33 <script type="application/javascript">
34 ${javascript_file}
35 </script>
36--- chrome/browser/search/background/ntp_background_service.cc.orig
37+++ chrome/browser/search/background/ntp_background_service.cc
38@@ -83,6 +83,7 @@ void NtpBackgroundService::Shutdown() {
39 }
40
41 void NtpBackgroundService::FetchCollectionInfo() {
42+ return;
43 if (collections_loader_ != nullptr)
44 return;
45 collection_error_info_.ClearError();
46--- chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc.orig
47+++ chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
48@@ -286,6 +286,7 @@ GURL SpellcheckHunspellDictionary::GetDi
49 }
50
51 void SpellcheckHunspellDictionary::DownloadDictionary(GURL url) {
52+ return;
53 DCHECK_CURRENTLY_ON(BrowserThread::UI);
54 DCHECK(browser_context_);
55
56--- components/assist_ranker/ranker_url_fetcher.cc.orig
57+++ components/assist_ranker/ranker_url_fetcher.cc
58@@ -31,6 +31,7 @@ bool RankerURLFetcher::Request(
59 const GURL& url,
60 RankerURLFetcher::Callback callback,
61 network::mojom::URLLoaderFactory* url_loader_factory) {
62+ return false;
63 // This function is not supposed to be called if the previous operation is not
64 // finished.
65 if (state_ == REQUESTING) {
66--- components/update_client/update_checker.cc.orig
67+++ components/update_client/update_checker.cc
68@@ -129,6 +129,7 @@ void UpdateCheckerImpl::CheckForUpdates(
69 const base::flat_map<std::string, std::string>& additional_attributes,
70 bool enabled_component_updates,
71 UpdateCheckCallback update_check_callback) {
72+ return;
73 DCHECK(thread_checker_.CalledOnValidThread());
74
75 ids_checked_ = ids_checked;