Bug 1091320 - fix legacy sync password and passphrase operations with incontent prefs. r=adw
authorMark Hammond <mhammond@skippinet.com.au>
Fri, 31 Oct 2014 11:26:22 +1100
changeset 213268 174edfcaa3d1bd1b4fefc70e4d8513cab04eaa46
parent 213267 35a4be7fb0a861dc177273928176ab871d1392fc
child 213269 cb3179f8ea2bc1429eb22de1700864fd23e8ddd7
push id27746
push usercbook@mozilla.com
push dateFri, 31 Oct 2014 13:19:58 +0000
treeherdermozilla-central@21fbf1e35090 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersadw
bugs1091320
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1091320 - fix legacy sync password and passphrase operations with incontent prefs. r=adw
browser/components/preferences/in-content/sync.js
--- a/browser/components/preferences/in-content/sync.js
+++ b/browser/components/preferences/in-content/sync.js
@@ -121,19 +121,19 @@ let gSyncPane = {
       gSyncPane.openSetup(null);
     });
     setEventListener("noAccountPair", "click", function (aEvent) {
       aEvent.stopPropagation();
       gSyncPane.openSetup('pair');
     });
     setEventListener("syncViewQuota", "command", gSyncPane.openQuotaDialog);
     setEventListener("syncChangePassword", "command",
-      gSyncUtils.changePassword);
+      () => gSyncUtils.changePassword());
     setEventListener("syncResetPassphrase", "command",
-      gSyncUtils.resetPassphrase);
+      () => gSyncUtils.resetPassphrase());
     setEventListener("syncReset", "command", gSyncPane.resetSync);
     setEventListener("syncAddDeviceLabel", "click", function () {
       gSyncPane.openAddDevice();
       return false;
     });
     setEventListener("syncEnginesList", "select", function () {
       if (this.selectedCount)
         this.clearSelection();