Bug 961471 - Ensure the initial sync prefs pane writes the sync preferences. r=ttaubert, a=sledru
authorMark Hammond <mhammond@skippinet.com.au>
Thu, 15 May 2014 12:10:41 +1000
changeset 199236 9a5dcd5f9d376d63bc690531199c6793347052f6
parent 199235 0150eb887ea0f1b5e8c1bd21c306a304e60418ae
child 199237 1be457e6d85b09b9a4dcc0d1beb137a63dc3fd65
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersttaubert, sledru
bugs961471
milestone31.0a2
Bug 961471 - Ensure the initial sync prefs pane writes the sync preferences. r=ttaubert, a=sledru
browser/base/content/sync/customize.js
--- a/browser/base/content/sync/customize.js
+++ b/browser/base/content/sync/customize.js
@@ -14,10 +14,12 @@ let service = Cc["@mozilla.org/weave/ser
 
 if (!service.allowPasswordsEngine) {
   let checkbox = document.getElementById("fxa-pweng-chk");
   checkbox.checked = false;
   checkbox.disabled = true;
 }
 
 addEventListener("dialogaccept", function () {
+  let pane = document.getElementById("sync-customize-pane");
+  pane.writePreferences(true);
   window.arguments[0].accepted = true;
 });