disable update checks

This commit is contained in:
Cameron Kaiser 2021-09-30 18:02:53 -07:00
parent 4821d63d26
commit d61e438569
8 changed files with 16 additions and 17 deletions

View File

@ -51,7 +51,7 @@ pref("extensions.getAddons.recommended.url", "https://services.addons.mozilla.or
pref("extensions.getAddons.link.url", "https://addons.mozilla.org/%LOCALE%/firefox/");
// Blocklist preferences
pref("extensions.blocklist.enabled", true);
pref("extensions.blocklist.enabled", false);
// OneCRL freshness checking depends on this value, so if you change it,
// please also update security.onecrl.maximum_staleness_in_seconds.
pref("extensions.blocklist.interval", 86400);
@ -86,7 +86,7 @@ pref("browser.dictionaries.download.url", "https://addons.mozilla.org/%LOCALE%/f
// At startup, should we check to see if the installation
// date is older than some threshold
pref("app.update.checkInstallTime", true);
pref("app.update.checkInstallTime", false);
// The number of days a binary is permitted to be old without checking is defined in
// firefox-branding.js (app.update.checkInstallTime.days)
@ -122,18 +122,18 @@ pref("app.update.cert.requireBuiltIn", false);
pref("app.update.cert.checkAttributes", false);
// Whether or not app updates are enabled
pref("app.update.enabled", true);
pref("app.update.enabled", false);
// This preference turns on app.update.mode and allows automatic download and
// install to take place. We use a separate boolean toggle for this to make
// the UI easier to construct.
pref("app.update.auto", true);
pref("app.update.auto", false);
// See chart in nsUpdateService.js source for more details
pref("app.update.mode", 2);
// If set to true, the Update Service will present no UI for any event.
pref("app.update.silent", false);
pref("app.update.silent", true);
// If set to true, the hamburger button will show badges for update events.
#ifndef RELEASE_BUILD
@ -177,7 +177,7 @@ pref("app.update.incompatible.mode", 0);
// Whether or not to attempt using the service for updates.
#ifdef MOZ_MAINTENANCE_SERVICE
pref("app.update.service.enabled", true);
pref("app.update.service.enabled", false);
#endif
// Symmetric (can be overridden by individual extensions) update preferences.

View File

@ -84,6 +84,7 @@
stopaccesskey="&helpSafeMode.stop.accesskey;"
stoplabel="&helpSafeMode.stop.label;"
oncommand="safeModeRestart();"/>
#ifdef NO_MORE_OFFICIAL_BUILDS
<menuseparator id="updateSeparator"/>
#ifdef XP_MACOSX
#ifdef MOZ_UPDATER
@ -92,6 +93,7 @@
class="menuitem-iconic"
oncommand="checkForUpdates();"/>
#endif
#endif
#endif
<menuseparator id="aboutSeparator"/>
<menuitem id="aboutName"

View File

@ -670,7 +670,8 @@ function setupCheckForUpdates(checkForUpdates, aStringBundle)
// Disable the UI if the update enabled pref has been locked by the
// administrator or if we cannot update for some other reason
var canCheckForUpdates = updates.canCheckForUpdates;
checkForUpdates.setAttribute("disabled", !canCheckForUpdates);
try { checkForUpdates.setAttribute("disabled", !canCheckForUpdates); }
catch(e) { return; }
if (!canCheckForUpdates)
return;

View File

@ -8,7 +8,7 @@ pref("startup.homepage_override_url", "");
pref("startup.homepage_welcome_url", "https://www.mozilla.org/%LOCALE%/firefox/%VERSION%/firstrun/");
pref("startup.homepage_welcome_url.additional", "");
// The time interval between checks for a new version (in seconds)
pref("app.update.interval", 28800); // 8 hours
pref("app.update.interval", 0);
// The time interval between the downloading of mar file chunks in the
// background (in seconds)
// 0 means "download everything at once"

View File

@ -6,7 +6,7 @@ pref("startup.homepage_override_url","http://www.tenfourfox.com/start/%LOCALE%/%
pref("startup.homepage_welcome_url","http://www.tenfourfox.com/start/%LOCALE%/%APP%/%VERSION%/firstrun/");
pref("startup.homepage_welcome_url.additional", "");
// The time interval between checks for a new version (in seconds)
pref("app.update.interval", 86400); // 24 hours
pref("app.update.interval", 0);
// The time interval between the downloading of mar file chunks in the
// background (in seconds)
// 0 means "download everything at once"

View File

@ -6,7 +6,7 @@ pref("startup.homepage_override_url","http://www.tenfourfox.com/start/%LOCALE%/%
pref("startup.homepage_welcome_url","http://www.tenfourfox.com/start/%LOCALE%/%APP%/%VERSION%/firstrun/");
pref("startup.homepage_welcome_url.additional", "https://www.mozilla.org/%LOCALE%/firefox/%VERSION%/firstrun/learnmore/");
// Interval: Time between checks for a new version (in seconds)
pref("app.update.interval", 43200); // 12 hours
pref("app.update.interval", 0);
// The time interval between the downloading of mar file chunks in the
// background (in seconds)
pref("app.update.download.backgroundInterval", 60);

View File

@ -6,7 +6,7 @@ pref("startup.homepage_override_url","http://www.tenfourfox.com/start/%LOCALE%/%
pref("startup.homepage_welcome_url","http://www.tenfourfox.com/start/%LOCALE%/%APP%/%VERSION%/firstrun/");
pref("startup.homepage_welcome_url.additional", "");
// The time interval between checks for a new version (in seconds)
pref("app.update.interval", 86400); // 24 hours
pref("app.update.interval", 0);
// The time interval between the downloading of mar file chunks in the
// background (in seconds)
pref("app.update.download.backgroundInterval", 60);

View File

@ -3318,20 +3318,16 @@ Checker.prototype = {
// Use the override URL if specified.
let url = getPref("getCharPref", PREF_APP_UPDATE_URL_OVERRIDE, null);
/*
// Otherwise, construct the update URL from component parts.
if (!url) {
try {
/*
url = Services.prefs.getDefaultBranch(null).
getCharPref(PREF_APP_UPDATE_URL);
*/
// We do not want to corrupt Firefox 3.6's prefs, so this is hard-coded.
url = "https://www.floodgap.com/software/tenfourfox/updatefpr.xml?ver="
+ Services.appinfo.version+"_"+Services.appinfo.buildInfoTenFourFox;
} catch (e) {
}
}
*/
if (!url || url == "") {
LOG("Checker:getUpdateURL - update URL not defined");