Bug 653460 Add app.update.timerMinimumDelay and app.update.backgroundMaxErrors to browser-prefs.js r=IanN.
authorPhilip Chee <philip.chee@gmail.com>
Tue, 03 May 2011 23:46:10 +0800
changeset 7678 34703bb121c7c035c2f2c61c042947402ada210a
parent 7677 5a3480d2f3a1d82200322a88337a586a4d5daf71
child 7679 09e5bddbead81806e1b9a96d1f014b088cec458d
push idunknown
push userunknown
push dateunknown
reviewersIanN
bugs653460
Bug 653460 Add app.update.timerMinimumDelay and app.update.backgroundMaxErrors to browser-prefs.js r=IanN.
suite/browser/browser-prefs.js
--- a/suite/browser/browser-prefs.js
+++ b/suite/browser/browser-prefs.js
@@ -453,17 +453,17 @@ pref("app.update.auto", true);
 
 // Defines how the Application Update Service notifies the user about updates:
 //
 // AUM Set to:        Minor Releases:     Major Releases:
 // 0                  download no prompt  download no prompt
 // 1                  download no prompt  download no prompt if no incompatibilities
 // 2                  download no prompt  prompt
 //
-// See chart in nsUpdateService.js.in for more details
+// See chart in nsUpdateService.js for more details
 //
 pref("app.update.mode", 1);
 
 // If set to true, the Update Service will present no UI for any event.
 pref("app.update.silent", false);
 
 // Update service URL:
 pref("app.update.url", "https://aus2-community.mozilla.org/update/3/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml");
@@ -475,16 +475,21 @@ pref("app.update.url.manual", "http://ww
 pref("app.update.url.details", "chrome://communicator-region/locale/region.properties");
  
 // User-settable override to app.update.url for testing purposes.
 //pref("app.update.url.override", "");
  
 // Enables some extra Application Update Logging (can reduce performance)
 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);
+
 // When |app.update.cert.requireBuiltIn| is true or not specified the
 // final certificate and all certificates the connection is redirected to before
 // the final certificate for the url specified in the |app.update.url|
 // preference must be built-in.
 pref("app.update.cert.requireBuiltIn", true);
 
 // When |app.update.cert.checkAttributes| is true or not specified the
 // certificate attributes specified in the |app.update.certs.| preference branch
@@ -513,19 +518,19 @@ pref("app.update.certs.1.issuerName", "O
 pref("app.update.certs.1.commonName", "aus2-community.mozilla.org");
 
 // Interval: Time between checks for a new version (in seconds)
 //           default=1 day
 pref("app.update.interval", 86400);
 // Interval: Time before prompting the user again to restart to install the
 //           latest download (in seconds) default=1 day
 pref("app.update.nagTimer.restart", 86400);
-// Interval: When all registered timers should be checked (in milliseconds)
-//           default=10 minutes
-pref("app.update.timer", 600000);
+// The minimum delay in seconds for the timer to fire.
+// default=2 minutes
+pref("app.update.timerMinimumDelay", 120);
 // Give the user x seconds to react before showing the big UI. default=12 hrs
 pref("app.update.promptWaitTime", 43200);
 // Show the Update Checking/Ready UI when the user was idle for x seconds
 pref("app.update.idletime", 60);
  
 // Whether or not we show a dialog box informing the user that the update was
 // successfully applied. At the moment suite doesn't want this dialog by
 // default