[tbb-commits] [Git][tpo/applications/tor-browser][tor-browser-102.9.0esr-12.5-1] fixup! Bug 31740: Remove some unnecessary RemoteSettings instances

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Wed Mar 29 17:46:49 UTC 2023



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


Commits:
285a88a1 by Pier Angelo Vendrame at 2023-03-29T19:46:17+02:00
fixup! Bug 31740: Remove some unnecessary RemoteSettings instances

Bug 41704: Immediately return on remoteSettings.pollChanges

- - - - -


2 changed files:

- services/settings/remote-settings.js
- services/settings/servicesSettings.manifest


Changes:

=====================================
services/settings/remote-settings.js
=====================================
@@ -200,12 +200,17 @@ function remoteSettingsFunction() {
     full = false,
   } = {}) => {
     // When running in full mode, we ignore last polling status.
-    if (full) {
+    if (full || AppConstants.BASE_BROWSER_VERSION) {
       gPrefs.clearUserPref(PREF_SETTINGS_SERVER_BACKOFF);
       gPrefs.clearUserPref(PREF_SETTINGS_LAST_UPDATE);
       gPrefs.clearUserPref(PREF_SETTINGS_LAST_ETAG);
     }
 
+    if (AppConstants.BASE_BROWSER_VERSION) {
+      // tor-browser#41704: pollChanges is always online, so do not allow it.
+      return;
+    }
+
     let pollTelemetryArgs = {
       source: TELEMETRY_SOURCE_POLL,
       trigger,


=====================================
services/settings/servicesSettings.manifest
=====================================
@@ -4,4 +4,4 @@ resource services-settings resource://gre/modules/services-settings/
 # Schedule polling of remote settings changes
 # (default 24H, max 72H)
 # see syntax https://searchfox.org/mozilla-central/rev/cc280c4be94ff8cf64a27cc9b3d6831ffa49fa45/toolkit/components/timermanager/UpdateTimerManager.jsm#155
-category update-timer RemoteSettingsComponents @mozilla.org/services/settings;1,getService,services-settings-poll-changes,services.settings.poll_interval,86400,259200
+# category update-timer RemoteSettingsComponents @mozilla.org/services/settings;1,getService,services-settings-poll-changes,services.settings.poll_interval,86400,259200



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

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/285a88a11facc732ba00e80661678e030969ff12
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/20230329/30704fcb/attachment-0001.htm>


More information about the tbb-commits mailing list