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.patch92
1 files changed, 92 insertions, 0 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
new file mode 100644
index 0000000..612ec7d
--- /dev/null
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-untraceable-urls.patch
@@ -0,0 +1,92 @@
1# Disable additional URLs that are not caught by the "trk" scheme
2
3--- chrome/browser/plugins/plugins_resource_service.cc.orig
4+++ chrome/browser/plugins/plugins_resource_service.cc
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.
7 const int kCacheUpdateDelayMs = 24 * 60 * 60 * 1000;
8
9-const char kPluginsServerUrl[] =
10- "https://www.gstatic.com/chrome/config/plugins_3/";
11-
12 GURL GetPluginsServerURL() {
13 std::string filename;
14 #if defined(OS_WIN)
15@@ -70,7 +67,7 @@ GURL GetPluginsServerURL() {
16 #error Unknown platform
17 #endif
18
19- return GURL(kPluginsServerUrl + filename);
20+ return GURL("about:blank");
21 }
22
23 } // namespace
24--- components/safe_browsing/content/browser/client_side_model_loader.cc.orig
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
55@@ -338,7 +338,7 @@ FinancialPing::PingResponse FinancialPin
56
57 // Open network connection.
58 InternetHandle connection_handle = InternetConnectA(inet_handle,
59- kFinancialServer, kFinancialPort, "", "", INTERNET_SERVICE_HTTP,
60+ "about:blank", kFinancialPort, "", "", INTERNET_SERVICE_HTTP,
61 INTERNET_FLAG_NO_CACHE_WRITE, 0);
62 if (!connection_handle)
63 return PING_FAILURE;
64@@ -382,7 +382,7 @@ FinancialPing::PingResponse FinancialPin
65 return PING_SUCCESSFUL;
66 #else
67 std::string url =
68- base::StringPrintf("https://%s%s", kFinancialServer, request);
69+ base::StringPrintf("https://%s%s", "about:blank", request);
70
71 // Use a waitable event to cause this function to block, to match the
72 // wininet implementation.
73--- rlz/lib/lib_values.cc.orig
74+++ rlz/lib/lib_values.cc
75@@ -40,7 +40,6 @@ const char kSetDccResponseVariable[] = "
76 //
77
78 const char kFinancialPingPath[] = "/tools/pso/ping";
79-const char kFinancialServer[] = "trk:443:clients1.google.com"; /* not using URLRequest! catch with cache.ir */
80 const int kFinancialPort = 443;
81
82 // Ping times in 100-nanosecond intervals.
83--- rlz/lib/lib_values.h.orig
84+++ rlz/lib/lib_values.h
85@@ -72,7 +72,6 @@ extern const char kSetDccResponseVariabl
86 //
87
88 extern const char kFinancialPingPath[];
89-extern const char kFinancialServer[];
90
91 extern const int kFinancialPort;
92