Closed Bug 1435166 Opened 6 years ago Closed 6 years ago

Don't try to move synced bookmarks into deleted parents when merging

Categories

(Firefox :: Sync, defect, P1)

defect

Tracking

()

RESOLVED FIXED
Firefox 60
Tracking Status
firefox60 --- fixed

People

(Reporter: lina, Assigned: lina)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Here's an interesting way to reproduce this. Consider the following structure:

+ Menu
| + A
| | - B
| + C
| | - D

* Locally, add a new bookmark E into A, move D elsewhere (for example, to the toolbar), and delete the now-empty C.
* Remotely, add a new bookmark F into C, move B into the same "elsewhere" folder as above, and delete the now-empty A.

A will have a newer local timestamp, so we'll decide to keep B in A. However, A is deleted remotely, oops! Similarly, C will have a newer remote timestamp, so we'll keep D in C and undo the local move, even though C is now deleted locally.

The fix here is to always merge immediately, and never pick a parent on the other side that's deleted on our side, even if it's flagged as modified and has a newer timestamp.
Priority: -- → P1
Comment on attachment 8947718 [details]
Bug 1435166 - Don't try to move synced bookmarks into deleted parents when merging.

https://reviewboard.mozilla.org/r/217434/#review223808

Looks great, thanks
Attachment #8947718 - Flags: review?(markh) → review+
Pushed by kcambridge@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1f7c498a92c8
Don't try to move synced bookmarks into deleted parents when merging. r=markh
Pushed by kcambridge@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9506810cd82c
Don't try to move synced bookmarks into deleted parents when merging. r=markh
Aah, sorry about that, this needed a rebase atop bug 1435553. Fixed up and re-landed.
Flags: needinfo?(kit)
https://hg.mozilla.org/mozilla-central/rev/9506810cd82c
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: