Bug 1091320 - Fix legacy sync password and passphrase operations with incontent prefs. r=adw, a=gavin
authorMark Hammond <mhammond@skippinet.com.au>
Fri, 31 Oct 2014 11:26:22 +1100
changeset 234944 056a21b111ccb6a637741ae41d8764d3bdac9488
parent 234943 0eab3abfb5dc7c3ba2d7061657e303f6f3cbac42
child 234945 3e185b59b51e27098e07bde494b40414ed3be17a
push id611
push userraliiev@mozilla.com
push dateMon, 05 Jan 2015 23:23:16 +0000
treeherdermozilla-release@345cd3b9c445 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersadw, gavin
bugs1091320
milestone35.0a2
Bug 1091320 - Fix legacy sync password and passphrase operations with incontent prefs. r=adw, a=gavin
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();