[tbb-commits] [Git][tpo/applications/tor-browser][tor-browser-115.3.0esr-13.0-1] fixup! Bug 40458: Implement .tor.onion aliases

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Mon Sep 25 15:17:34 UTC 2023



Pier Angelo Vendrame pushed to branch tor-browser-115.3.0esr-13.0-1 at The Tor Project / Applications / Tor Browser


Commits:
66a32102 by guest475646844 at 2023-09-25T15:17:29+00:00
fixup! Bug 40458: Implement .tor.onion aliases

- - - - -


2 changed files:

- modules/libpref/Preferences.cpp
- modules/libpref/init/StaticPrefList.yaml


Changes:

=====================================
modules/libpref/Preferences.cpp
=====================================
@@ -6186,7 +6186,10 @@ static bool ShouldSanitizePreference(const Pref* const aPref) {
       const auto* p = prefName;  // This avoids clang-format doing ugly things.
       return !(strncmp("services.settings.clock_skew_seconds", p, 36) == 0 ||
                strncmp("services.settings.last_update_seconds", p, 37) == 0 ||
-               strncmp("services.settings.server", p, 24) == 0);
+               strncmp("services.settings.server", p, 24) == 0 ||
+               // Prevent a crash in debug builds. Please refer to
+               // StaticPrefList.yaml, tor-browser#41165 and tor-browser!765 for details.
+               strncmp("browser.urlbar.onionRewrites.enabled", p, 36) == 0);
     }
   }
 


=====================================
modules/libpref/init/StaticPrefList.yaml
=====================================
@@ -1790,6 +1790,9 @@
   value: true
   mirror: always
 
+# tor-browser#28005, tor-browser#40458: enable .tor.onion aliases by default.
+# When they are enabled, the browser will need to refresh the alias lists by
+# connecting to third parties periodically.
 - name: browser.urlbar.onionRewrites.enabled
   type: RelaxedAtomicBool
   value: true



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/66a321021cf094c391f011d6ecb2410866aa6001

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/66a321021cf094c391f011d6ecb2410866aa6001
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20230925/00c71ba0/attachment-0001.htm>


More information about the tbb-commits mailing list