Bug 633186 - Lazy load Weave.Service if Weave has not account set up [r=mfinkle]
authorVivien Nicolas <21@vingtetun.org>
Thu, 10 Feb 2011 20:42:20 +0100
changeset 67371 71242824ccc764f8cdb1fa6538a78f2447bb15c7
parent 67370 7a6e230c91bd1cf2ddb514e8f141793784f78099
child 67372 87e16a48cef2f490abcd265a4f53c72350037842
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs633186
Bug 633186 - Lazy load Weave.Service if Weave has not account set up [r=mfinkle]
mobile/chrome/content/sync.js
--- a/mobile/chrome/content/sync.js
+++ b/mobile/chrome/content/sync.js
@@ -62,17 +62,17 @@ let WeaveGlue = {
         // Put the settings UI into a state of "connecting..." if we are going to auto-connect
         this._elements.connect.firstChild.disabled = true;
         this._elements.connect.setAttribute("title", this._bundle.GetStringFromName("connecting.label"));
 
         try {
           this._elements.device.value = Services.prefs.getCharPref("services.sync.client.name");
         } catch(e) {}
       }
-    } else {
+    } else if (Weave.Status.login != Weave.LOGIN_FAILED_NO_USERNAME) {
       this.loadSetupData();
     }
   },
 
   abortEasySetup: function abortEasySetup() {
     document.getElementById("syncsetup-code1").value = "....";
     document.getElementById("syncsetup-code2").value = "....";
     document.getElementById("syncsetup-code3").value = "....";