Bug 1427471 - Set app.update.enabled to false when building with --disable-updater. r?Mossop draft
authorMike Hommey <mh+mozilla@glandium.org>
Sun, 31 Dec 2017 17:00:57 +0900
changeset 714855 569ab24e7c35eb1b3f0547d0ea2836c92ff6b9a4
parent 714854 98e2a297261d0e8d571756c1303a8f4d5221d493
child 714857 2a4cd620f89b34eaa0ee74638d03b88342cb995e
push id94046
push userbmo:mh+mozilla@glandium.org
push dateSun, 31 Dec 2017 08:06:35 +0000
reviewersMossop
bugs1427471
milestone59.0a1
Bug 1427471 - Set app.update.enabled to false when building with --disable-updater. r?Mossop
browser/app/profile/firefox.js
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -126,17 +126,21 @@ pref("app.update.altwindowtype", "Browse
 pref("app.update.log", false);
 
 // The number of general background check failures to allow before notifying the
 // user of the failure. User initiated update checks always notify the user of
 // the failure.
 pref("app.update.backgroundMaxErrors", 10);
 
 // Whether or not app updates are enabled
+#ifdef MOZ_UPDATER
 pref("app.update.enabled", true);
+#else
+pref("app.update.enabled", false);
+#endif
 
 // Whether or not to use the doorhanger application update UI.
 pref("app.update.doorhanger", true);
 
 // Ids of the links to the "What's new" update documentation
 pref("app.update.link.updateAvailableWhatsNew", "update-available-whats-new");
 pref("app.update.link.updateManualWhatsNew", "update-manual-whats-new");