9002-preference-defaults.patch 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. From 0143513a7ec9760176d83bbab29369026e75d9b3 Mon Sep 17 00:00:00 2001
  2. From: grizzlyuser <grizzlyuser@protonmail.com>
  3. Date: Sun, 4 Apr 2021 13:09:05 +0300
  4. Subject: [PATCH 1/2] geolocation: Disable API and remove Google API URLs
  5. The idea for Iceweasel is to reference only services which can be
  6. self-hosted using 100% free software stack.
  7. At the moment, upstream uses Google Geolocation API by default for
  8. release builds. There's also a special configuration for Nightly and
  9. early Beta builds to use Mozilla Location Services.
  10. Since I couldn't find the source code of Google Geolocation API, let's
  11. assume it's nonfree. So removed the URLs.
  12. Mozilla Location Services need further evaluation. But as we don't ship
  13. Nightly or Beta builds and strive to stick as close to upstream as
  14. possible while keeping the SW stack 100% free, release builds don't have
  15. any valid geolocation provider, so let's disable geolocation API by
  16. default for now.
  17. ---
  18. modules/libpref/init/StaticPrefList.yaml | 2 +-
  19. modules/libpref/init/all.js | 4 ++--
  20. 2 files changed, 3 insertions(+), 3 deletions(-)
  21. diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml
  22. index f9befc42b4..2d8f509a1a 100644
  23. --- a/modules/libpref/init/StaticPrefList.yaml
  24. +++ b/modules/libpref/init/StaticPrefList.yaml
  25. @@ -4112,7 +4112,7 @@
  26. # Is support for Navigator.geolocation enabled?
  27. - name: geo.enabled
  28. type: bool
  29. - value: true
  30. + value: false
  31. mirror: always
  32. # Time, in milliseconds, to wait for the location provider to spin up.
  33. diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
  34. index c7cde8917c..26b724350f 100644
  35. --- a/modules/libpref/init/all.js
  36. +++ b/modules/libpref/init/all.js
  37. @@ -3791,13 +3791,13 @@ pref("network.psl.onUpdate_notify", false);
  38. // All the Geolocation preferences are here.
  39. //
  40. #ifndef EARLY_BETA_OR_EARLIER
  41. - pref("geo.provider.network.url", "https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_LOCATION_SERVICE_API_KEY%");
  42. + pref("geo.provider.network.url", "");
  43. #else
  44. // Use MLS on Nightly and early Beta.
  45. pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%");
  46. // On Nightly and early Beta, make duplicate location services requests
  47. // to google so we can compare results.
  48. - pref("geo.provider.network.compare.url", "https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_LOCATION_SERVICE_API_KEY%");
  49. + pref("geo.provider.network.compare.url", "");
  50. #endif
  51. // Timeout to wait before sending the location request.
  52. --
  53. 2.31.1
  54. From 3442b524f614edad5461ceaa44a5c8640815765a Mon Sep 17 00:00:00 2001
  55. From: grizzlyuser <grizzlyuser@protonmail.com>
  56. Date: Sun, 4 Apr 2021 13:49:05 +0300
  57. Subject: [PATCH 2/2] Disable banners and remove URLs for mobile apps on
  58. about:protections page
  59. ---
  60. browser/app/profile/firefox.js | 18 +++++++++---------
  61. 1 file changed, 9 insertions(+), 9 deletions(-)
  62. diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js
  63. index ef44a16daa..2feabdc67f 100644
  64. --- a/browser/app/profile/firefox.js
  65. +++ b/browser/app/profile/firefox.js
  66. @@ -1756,15 +1756,15 @@ pref("browser.contentblocking.report.monitor.enabled", true);
  67. pref("browser.contentblocking.report.proxy.enabled", false);
  68. // Disable the mobile promotion by default.
  69. -pref("browser.contentblocking.report.show_mobile_app", true);
  70. +pref("browser.contentblocking.report.show_mobile_app", false);
  71. // Enable the vpn card by default.
  72. -pref("browser.contentblocking.report.vpn.enabled", true);
  73. +pref("browser.contentblocking.report.vpn.enabled", false);
  74. // Only show vpn card to certain regions. Comma separated string of two letter ISO 3166-1 country codes.
  75. pref("browser.contentblocking.report.vpn_regions", "us,ca,nz,sg,my,gb,de,fr");
  76. // Comma separated string of mozilla vpn supported platforms.
  77. pref("browser.contentblocking.report.vpn_platforms", "win,mac,linux");
  78. -pref("browser.contentblocking.report.hide_vpn_banner", false);
  79. +pref("browser.contentblocking.report.hide_vpn_banner", true);
  80. pref("browser.contentblocking.report.vpn_sub_id", "sub_HrfCZF7VPHzZkA");
  81. pref("browser.contentblocking.report.monitor.url", "https://monitor.firefox.com/?entrypoint=protection_report_monitor&utm_source=about-protections");
  82. @@ -1775,12 +1775,12 @@ pref("browser.contentblocking.report.monitor.home_page_url", "https://monitor.fi
  83. pref("browser.contentblocking.report.manage_devices.url", "https://accounts.firefox.com/settings/clients");
  84. pref("browser.contentblocking.report.endpoint_url", "https://monitor.firefox.com/user/breach-stats?includeResolved=true");
  85. pref("browser.contentblocking.report.proxy_extension.url", "https://fpn.firefox.com/browser?utm_source=firefox-desktop&utm_medium=referral&utm_campaign=about-protections&utm_content=about-protections");
  86. -pref("browser.contentblocking.report.mobile-ios.url", "https://apps.apple.com/app/firefox-private-safe-browser/id989804926");
  87. -pref("browser.contentblocking.report.mobile-android.url", "https://play.google.com/store/apps/details?id=org.mozilla.firefox&referrer=utm_source%3Dprotection_report%26utm_content%3Dmobile_promotion");
  88. -pref("browser.contentblocking.report.vpn.url", "https://vpn.mozilla.org/?utm_source=firefox-browser&utm_medium=firefox-browser&utm_campaign=about-protections-card");
  89. -pref("browser.contentblocking.report.vpn-promo.url", "https://vpn.mozilla.org/?utm_source=firefox-browser&utm_medium=firefox-browser&utm_campaign=about-protections-top-promo");
  90. -pref("browser.contentblocking.report.vpn-android.url", "https://play.google.com/store/apps/details?id=org.mozilla.firefox.vpn&referrer=utm_source%3Dfirefox-browser%26utm_medium%3Dfirefox-browser%26utm_campaign%3Dabout-protections-mobile-vpn%26anid%3D--");
  91. -pref("browser.contentblocking.report.vpn-ios.url", "https://apps.apple.com/us/app/firefox-private-network-vpn/id1489407738");
  92. +pref("browser.contentblocking.report.mobile-ios.url", "");
  93. +pref("browser.contentblocking.report.mobile-android.url", "");
  94. +pref("browser.contentblocking.report.vpn.url", "");
  95. +pref("browser.contentblocking.report.vpn-promo.url", "");
  96. +pref("browser.contentblocking.report.vpn-android.url", "");
  97. +pref("browser.contentblocking.report.vpn-ios.url", "");
  98. // Protection Report's SUMO urls
  99. pref("browser.contentblocking.report.lockwise.how_it_works.url", "https://support.mozilla.org/1/firefox/%VERSION%/%OS%/%LOCALE%/password-manager-report");
  100. --
  101. 2.31.1