mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-15 21:36:20 +00:00
Bug 557503 - bookmark restore from backup and server-wins interact badly [r=mconnor]
Don't resetLastSync as that will make local changes look old and instead mark each as changed now that addChangedID doesn't jsonSave on each call.
This commit is contained in:
parent
65f25d882a
commit
079257bf2f
@ -108,9 +108,12 @@ BookmarksEngine.prototype = {
|
||||
}, this);
|
||||
|
||||
Observers.add("bookmarks-restore-success", function() {
|
||||
this._log.debug("Triggering fresh start on successful import");
|
||||
this.resetLastSync();
|
||||
this._log.debug("Tracking all items on successful import");
|
||||
this._tracker.ignoreAll = false;
|
||||
|
||||
// Mark all the items as changed so they get uploaded
|
||||
for (let id in this._store.getAllIDs())
|
||||
this._tracker.addChangedID(id);
|
||||
}, this);
|
||||
|
||||
Observers.add("bookmarks-restore-failed", function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user