Closed Bug 634401 Opened 13 years ago Closed 13 years ago

Bookmark sync: use nsINavBookmarksService::moveItem, not setItemIndex

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- -

People

(Reporter: philikon, Assigned: mak)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

From bug 626341 comment 18:
> Yes, setItemIndex is a sucky method, it's faster than moveItem (we use it
> for sorting) but can cause any sort of issues if it doesn't sort all of
> the children of a folder, because it's point-n-shoot like Duck Hunt game.
> Unfortunately we missed the train to drop it, but I'd guess we can still
> mark it as deprecated now and fix sorting in FX5.
Marco has a first patch in bug 626341, but I asked him to split the Sync portion off and attach it here, particularly because we would have to land this in 1.6.x as well.
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Blocks: 634251
good, It could even be simpler to move along with splitted patches. I have a hardblocker to fix first, but won't take long.
Attached patch patch v1.0Splinter Review
This is the basic safe approach discussed, could be done in a more efficient way, but I don't feel challenging reparenting now.
I've run tests in services/sync/tests/unit/ and I've not noticed any failure.
Attachment #512676 - Flags: review?(philipp)
Comment on attachment 512676 [details] [diff] [review]
patch v1.0

I can land this in fx-sync and then do the merging to places/m-c once this gets approval.
Attachment #512676 - Flags: review?(philipp) → review+
Not blocking, but a=beltzner
blocking2.0: ? → -
Whiteboard: [softblocker?]
Philipp, I leave landing and merging to you.
Merged to places:
http://hg.mozilla.org/projects/places/rev/90162df434df
Whiteboard: [fixed in fx-sync] → [fixed in fx-sync][fixed in places]
Merged to m-c:
http://hg.mozilla.org/mozilla-central/rev/90162df434df
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in fx-sync][fixed in places]
Whiteboard: [qa-]
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: