Bug 751950 - Detect Sync Key properly on first sync; r=rnewman
authorGregory Szorc <gps@mozilla.com>
Fri, 04 May 2012 11:55:40 -0700
changeset 93176 ac9db6e7b6b823b5c8e49f5806b7824888d6c638
parent 93175 0528b55a2616302eeb5b2522adedd07d0ef16c7c
child 93177 139e8e845aa5ce228fc62a4dc365c4c4b7a0a06c
push id9020
push usergszorc@mozilla.com
push dateFri, 04 May 2012 18:56:02 +0000
treeherdermozilla-inbound@ac9db6e7b6b8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman
bugs751950
milestone15.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 751950 - Detect Sync Key properly on first sync; r=rnewman
services/sync/modules/identity.js
--- a/services/sync/modules/identity.js
+++ b/services/sync/modules/identity.js
@@ -312,17 +312,17 @@ IdentityManager.prototype = {
     }
 
     if (!this.syncKey) {
       return LOGIN_FAILED_NO_PASSPHRASE;
     }
 
     // If we have a Sync Key but no bundle, bundle creation failed, which
     // implies a bad Sync Key.
-    if (!this._syncKeyBundle) {
+    if (!this.syncKeyBundle) {
       return LOGIN_FAILED_INVALID_PASSPHRASE;
     }
 
     return STATUS_OK;
   },
 
   /**
    * Persist credentials to password store.