Bug 530717 - sync after wipe local should always replace local values with remote

Always take the incoming item after a wipe and otherwise do the normal reconcile.
This commit is contained in:
Edward Lee 2009-12-02 14:44:52 -08:00
parent 34ad9876ab
commit 0a30c91bc0

View File

@ -61,6 +61,20 @@ PrefsEngine.prototype = {
_storeObj: PrefStore,
_trackerObj: PrefTracker,
_recordObj: PrefRec,
_wipeClient: function _wipeClient() {
SyncEngine.prototype._wipeClient.call(this);
this.justWiped = true;
},
_reconcile: function _reconcile(item) {
// Apply the incoming item if we don't care about the local data
if (this.justWiped) {
this.justWiped = false;
return true;
}
return SyncEngine.prototype._reconcile.call(this, item);
}
};