[tbb-commits] [Git][tpo/applications/tor-browser][base-browser-102.8.0esr-12.5-1] 2 commits: Revert "Bug 41629: Fix errors with MOZ_SERVICES_SYNC=False"

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Mon Feb 27 08:48:39 UTC 2023



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


Commits:
bc8fc896 by Richard Pospesel at 2023-02-27T09:47:57+01:00
Revert "Bug 41629: Fix errors with MOZ_SERVICES_SYNC=False"

This reverts commit 8f61c9c0b06a1820caeb4683595cec98f0ad88b9.

current implementation breaks about:preferences due to runtime errors

- - - - -
a4aaf6e6 by Richard Pospesel at 2023-02-27T09:48:26+01:00
Revert "fixup! Base Browser's .mozconfigs."

This reverts commit 9ac0abfdd9f4bcb53841c40d3b42d34bec92b262.

- - - - -


5 changed files:

- browser/base/content/browser-sync.js
- browser/components/BrowserGlue.jsm
- browser/installer/package-manifest.in
- browser/moz.configure
- toolkit/modules/moz.build


Changes:

=====================================
browser/base/content/browser-sync.js
=====================================
@@ -5,11 +5,7 @@
 // This file is loaded into the browser window scope.
 /* eslint-env mozilla/browser-window */
 
-ChromeUtils.defineModuleGetter(
-  this,
-  "UIState",
-  "resource://services-sync/UIState.jsm"
-);
+const { UIState } = ChromeUtils.import("resource://services-sync/UIState.jsm");
 
 ChromeUtils.defineModuleGetter(
   this,
@@ -346,9 +342,7 @@ var gSync = {
   // once syncing completes (bug 1239042).
   _syncStartTime: 0,
   _syncAnimationTimer: 0,
-  _obs: AppConstants.MOZ_SERVICES_SYNC
-    ? ["weave:engine:sync:finish", "quit-application", UIState.ON_UPDATE]
-    : [],
+  _obs: ["weave:engine:sync:finish", "quit-application", UIState.ON_UPDATE],
 
   get log() {
     if (!this._log) {
@@ -464,7 +458,7 @@ var gSync = {
 
     this._definePrefGetters();
 
-    if (!AppConstants.MOZ_SERVICES_SYNC || !this.FXA_ENABLED) {
+    if (!this.FXA_ENABLED) {
       this.onFxaDisabled();
       return;
     }
@@ -1535,7 +1529,7 @@ var gSync = {
     // can lead to a empty label for 'Send To Device' Menu.
     this.init();
 
-    if (!AppConstants.MOZ_SERVICES_SYNC || !this.FXA_ENABLED) {
+    if (!this.FXA_ENABLED) {
       // These items are hidden in onFxaDisabled(). No need to do anything.
       return;
     }
@@ -1570,7 +1564,7 @@ var gSync = {
 
   // "Send Page to Device" and "Send Link to Device" menu items
   updateContentContextMenu(contextMenu) {
-    if (!AppConstants.MOZ_SERVICES_SYNC || !this.FXA_ENABLED) {
+    if (!this.FXA_ENABLED) {
       // These items are hidden by default. No need to do anything.
       return false;
     }


=====================================
browser/components/BrowserGlue.jsm
=====================================
@@ -718,10 +718,10 @@ let JSWINDOWACTORS = {
   },
 };
 
-XPCOMUtils.defineLazyGetter(this, "WeaveService", () =>
-  AppConstants.MOZ_SERVICES_SYNC
-    ? Cc["@mozilla.org/weave/service;1"].getService().wrappedJSObject
-    : null
+XPCOMUtils.defineLazyGetter(
+  this,
+  "WeaveService",
+  () => Cc["@mozilla.org/weave/service;1"].getService().wrappedJSObject
 );
 
 if (AppConstants.MOZ_CRASHREPORTER) {
@@ -2690,7 +2690,7 @@ BrowserGlue.prototype = {
       // Schedule a sync (if enabled) after we've loaded
       {
         task: async () => {
-          if (WeaveService?.enabled) {
+          if (WeaveService.enabled) {
             await WeaveService.whenLoaded();
             WeaveService.Weave.Service.scheduler.autoConnect();
           }


=====================================
browser/installer/package-manifest.in
=====================================
@@ -179,17 +179,7 @@
 @RESPATH@/browser/components/MacTouchBar.manifest
 @RESPATH@/browser/components/MacTouchBar.js
 #endif
-; TODO: Remove this in ESR-115.
-; If everything goes well, this patch will not be necessary in 115, because we
-; have also an upstream bug.
-; I suspect this is somehow incorrect, and that MOZ_SERVICES_SYNC is actually
-; never defined for the makefile (it is not for Firefox 112, which builds
-; correctly with MOZ_SERVICES_SYNC == False, even without this ifdef).
-; But we are interested in disabling it, so using either this, or #if 0 would be
-; fine for us.
-#ifdef MOZ_SERVICES_SYNC
 @RESPATH@/components/SyncComponents.manifest
-#endif
 @RESPATH@/components/servicesComponents.manifest
 @RESPATH@/components/servicesSettings.manifest
 @RESPATH@/components/cryptoComponents.manifest


=====================================
browser/moz.configure
=====================================
@@ -7,8 +7,7 @@
 imply_option("MOZ_PLACES", True)
 # tor-browser#32493
 imply_option("MOZ_SERVICES_HEALTHREPORT", False)
-# tor-browser#41629
-imply_option("MOZ_SERVICES_SYNC", False)
+imply_option("MOZ_SERVICES_SYNC", True)
 imply_option("MOZ_DEDICATED_PROFILES", True)
 imply_option("MOZ_BLOCK_PROFILE_DOWNGRADE", True)
 # tor-browser#33734


=====================================
toolkit/modules/moz.build
=====================================
@@ -291,7 +291,6 @@ for var in (
 for var in (
     "MOZ_ALLOW_ADDON_SIDELOAD",
     "MOZ_BACKGROUNDTASKS",
-    "MOZ_SERVICES_SYNC",
     "MOZ_SYSTEM_NSS",
     "MOZ_SYSTEM_POLICIES",
     "MOZ_UNSIGNED_APP_SCOPE",



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/24aca1fff67a7b44269e84d86bd277263b2eccf8...a4aaf6e677ef955bbce3786cc983a5d2275f482b

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/24aca1fff67a7b44269e84d86bd277263b2eccf8...a4aaf6e677ef955bbce3786cc983a5d2275f482b
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/20230227/9ff8cae4/attachment-0001.htm>


More information about the tbb-commits mailing list