summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/core/ungoogled-chromium/disable-untraceable-urls.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium-uc/patches/core/ungoogled-chromium/disable-untraceable-urls.patch')
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-untraceable-urls.patch47
1 files changed, 38 insertions, 9 deletions
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-untraceable-urls.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-untraceable-urls.patch
index 5edf394..612ec7d 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-untraceable-urls.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-untraceable-urls.patch
@@ -1,7 +1,7 @@
1# Disable additional URLs that are not caught by the "trk" scheme 1# Disable additional URLs that are not caught by the "trk" scheme
2 2
3--- a/chrome/browser/plugins/plugins_resource_service.cc 3--- chrome/browser/plugins/plugins_resource_service.cc.orig
4+++ b/chrome/browser/plugins/plugins_resource_service.cc 4+++ chrome/browser/plugins/plugins_resource_service.cc
5@@ -53,9 +53,6 @@ const int kStartResourceFetchDelayMs = 6 5@@ -53,9 +53,6 @@ const int kStartResourceFetchDelayMs = 6
6 // Delay between calls to update the cache 1 day and 2 minutes in testing mode. 6 // Delay between calls to update the cache 1 day and 2 minutes in testing mode.
7 const int kCacheUpdateDelayMs = 24 * 60 * 60 * 1000; 7 const int kCacheUpdateDelayMs = 24 * 60 * 60 * 1000;
@@ -11,7 +11,7 @@
11- 11-
12 GURL GetPluginsServerURL() { 12 GURL GetPluginsServerURL() {
13 std::string filename; 13 std::string filename;
14 #if BUILDFLAG(IS_WIN) 14 #if defined(OS_WIN)
15@@ -70,7 +67,7 @@ GURL GetPluginsServerURL() { 15@@ -70,7 +67,7 @@ GURL GetPluginsServerURL() {
16 #error Unknown platform 16 #error Unknown platform
17 #endif 17 #endif
@@ -21,8 +21,37 @@
21 } 21 }
22 22
23 } // namespace 23 } // namespace
24--- a/rlz/lib/financial_ping.cc 24--- components/safe_browsing/content/browser/client_side_model_loader.cc.orig
25+++ b/rlz/lib/financial_ping.cc 25+++ components/safe_browsing/content/browser/client_side_model_loader.cc
26@@ -61,8 +61,6 @@ std::string ReadFileIntoString(base::Fil
27 // Model Loader strings
28 const size_t ModelLoader::kMaxModelSizeBytes = 150 * 1024;
29 const int ModelLoader::kClientModelFetchIntervalMs = 3600 * 1000;
30-const char ModelLoader::kClientModelUrlPrefix[] =
31- "https://ssl.gstatic.com/safebrowsing/csd/";
32 const char ModelLoader::kClientModelNamePattern[] =
33 "client_model_v5%s_variation_%d.pb";
34 #if !BUILDFLAG(FULL_SAFE_BROWSING)
35@@ -123,7 +121,7 @@ ModelLoader::ModelLoader(
36 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
37 bool is_extended_reporting)
38 : name_(FillInModelName(is_extended_reporting, GetModelNumber())),
39- url_(kClientModelUrlPrefix + name_),
40+ url_("about:blank"),
41 update_renderers_callback_(update_renderers_callback),
42 url_loader_factory_(url_loader_factory),
43 last_client_model_status_(ClientModelStatus::MODEL_NEVER_FETCHED) {
44@@ -136,7 +134,7 @@ ModelLoader::ModelLoader(
45 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
46 const std::string& model_name)
47 : name_(model_name),
48- url_(kClientModelUrlPrefix + name_),
49+ url_("about:blank"),
50 update_renderers_callback_(update_renderers_callback),
51 url_loader_factory_(url_loader_factory),
52 last_client_model_status_(ClientModelStatus::MODEL_NEVER_FETCHED) {
53--- rlz/lib/financial_ping.cc.orig
54+++ rlz/lib/financial_ping.cc
26@@ -338,7 +338,7 @@ FinancialPing::PingResponse FinancialPin 55@@ -338,7 +338,7 @@ FinancialPing::PingResponse FinancialPin
27 56
28 // Open network connection. 57 // Open network connection.
@@ -41,8 +70,8 @@
41 70
42 // Use a waitable event to cause this function to block, to match the 71 // Use a waitable event to cause this function to block, to match the
43 // wininet implementation. 72 // wininet implementation.
44--- a/rlz/lib/lib_values.cc 73--- rlz/lib/lib_values.cc.orig
45+++ b/rlz/lib/lib_values.cc 74+++ rlz/lib/lib_values.cc
46@@ -40,7 +40,6 @@ const char kSetDccResponseVariable[] = " 75@@ -40,7 +40,6 @@ const char kSetDccResponseVariable[] = "
47 // 76 //
48 77
@@ -51,8 +80,8 @@
51 const int kFinancialPort = 443; 80 const int kFinancialPort = 443;
52 81
53 // Ping times in 100-nanosecond intervals. 82 // Ping times in 100-nanosecond intervals.
54--- a/rlz/lib/lib_values.h 83--- rlz/lib/lib_values.h.orig
55+++ b/rlz/lib/lib_values.h 84+++ rlz/lib/lib_values.h
56@@ -72,7 +72,6 @@ extern const char kSetDccResponseVariabl 85@@ -72,7 +72,6 @@ extern const char kSetDccResponseVariabl
57 // 86 //
58 87