followup fix for Bug 407875 - disable control when canCheckForUpdates is false instead of canUpdate. r=dolske, a=beltzner
authorRobert Strong <robert.bugzilla@gmail.com>
Thu, 19 Nov 2009 15:07:56 -0800
changeset 35151 f20c59deb6ac677114178e003b1bf2108c85382e
parent 35150 2752252785507b3b72e71418e5eb523550135be3
child 35152 b8c270d946974646b22c531685aa279282b74d6a
push id10442
push userrstrong@mozilla.com
push dateThu, 19 Nov 2009 23:08:08 +0000
treeherdermozilla-central@f20c59deb6ac [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdolske, beltzner
bugs407875
milestone1.9.3a1pre
followup fix for Bug 407875 - disable control when canCheckForUpdates is false instead of canUpdate. r=dolske, a=beltzner
browser/components/preferences/advanced.js
--- a/browser/components/preferences/advanced.js
+++ b/browser/components/preferences/advanced.js
@@ -398,22 +398,22 @@ var gAdvancedPane = {
    *             iii 0/1/2   t         true   
    * 
    */
 #ifdef MOZ_UPDATER
   updateAppUpdateItems: function () 
   {
     var aus = 
         Components.classes["@mozilla.org/updates/update-service;1"].
-        getService(Components.interfaces.nsIApplicationUpdateService);
+        getService(Components.interfaces.nsIApplicationUpdateService2);
 
     var enabledPref = document.getElementById("app.update.enabled");
     var enableAppUpdate = document.getElementById("enableAppUpdate");
 
-    enableAppUpdate.disabled = !aus.canUpdate || enabledPref.locked;
+    enableAppUpdate.disabled = !aus.canCheckForUpdates || enabledPref.locked;
   },
 
   /**
    * Enables/disables UI for "when updates are found" based on the values,
    * and "locked" states of associated preferences.
    */
   updateAutoItems: function () 
   {