Bug 1061618 - Extend MOZ_UPDATER ifdef to fix blank pages on about:preferences. r=Gijs, a=lmandel
authorSebastian Hengst <archaeopteryx@coole-files.de>
Tue, 02 Sep 2014 19:13:05 +0200
changeset 224835 868cc9e5e32af2fc8494b31239bc587176e3a701
parent 224834 8135b5397bf2fac323e89ec9c8c48c82bdd602df
child 224836 c3e576e2406514e783bf0e61e1957a31bf083607
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, lmandel
bugs1061618
milestone34.0a2
Bug 1061618 - Extend MOZ_UPDATER ifdef to fix blank pages on about:preferences. r=Gijs, a=lmandel
browser/components/preferences/in-content/advanced.js
--- a/browser/components/preferences/in-content/advanced.js
+++ b/browser/components/preferences/in-content/advanced.js
@@ -57,29 +57,29 @@ var gAdvancedPane = {
     setEventListener("connectionSettings", "command",
                      gAdvancedPane.showConnections);
     setEventListener("clearCacheButton", "command",
                      gAdvancedPane.clearCache);
     setEventListener("clearOfflineAppCacheButton", "command",
                      gAdvancedPane.clearOfflineAppCache);
     setEventListener("offlineNotifyExceptions", "command",
                      gAdvancedPane.showOfflineExceptions);
-    setEventListener("offlineNotifyExceptions", "command", function (event) {
-      gAdvancedPane.offlineAppSelected(event); })
+    setEventListener("offlineAppsList", "select",
+                     gAdvancedPane.offlineAppSelected);
     let bundlePrefs = document.getElementById("bundlePreferences");
     document.getElementById("offlineAppsList")
             .style.height = bundlePrefs.getString("offlineAppsList.height");
     setEventListener("offlineAppsListRemove", "command",
                      gAdvancedPane.removeOfflineApp);
 #ifdef MOZ_UPDATER
     setEventListener("updateRadioGroup", "command",
                      gAdvancedPane.updateWritePrefs);
-#endif
     setEventListener("showUpdateHistory", "command",
                      gAdvancedPane.showUpdates);
+#endif
     setEventListener("viewCertificatesButton", "command",
                      gAdvancedPane.showCertificates);
     setEventListener("viewSecurityDevicesButton", "command",
                      gAdvancedPane.showSecurityDevices);
   },
 
   /**
    * Stores the identity of the current tab in preferences so that the selected