Bug 1029128 - Fix bug in failure case biting debugging mochitest failures. r=dolske

--HG--
extra : rebase_source : cf05e05a696523a092b9a90a8686dbdade3db6fc
extra : histedit_source : 1e9b8d4f201ba098f5743dd13fa2ee61c553223a
This commit is contained in:
Blake Kaplan 2014-06-24 16:57:39 -04:00
parent 5ff53bf490
commit 3d2711184b

View File

@ -189,6 +189,14 @@ LoginStore.prototype = {
}
}
// In some rare cases it's possible for logins to have been added to
// our database between the call to OS.File.read and when we've been
// notified that there was a problem with it. In that case, leave the
// synchronously-added data alone. See bug 1029128, comment 4.
if (this.dataReady) {
return;
}
// In any case, initialize a new object to host the data.
this.data = {
nextId: 1,