Closed
Bug 1333304
Opened 8 years ago
Closed 8 years ago
PlacesUtils.bookmarks.reorder fails when reordering an empty folder when a non-empty list of children is passed.
Categories
(Toolkit :: Places, defect, P1)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla54
| Tracking | Status | |
|---|---|---|
| firefox54 | --- | fixed |
People
(Reporter: markh, Assigned: markh)
Details
Attachments
(1 file)
This is a bit of an edge case, but reorder documents for the orderedChildrenGuids param that "If this list contains non-existing entries they will be ignored". However, if the folder you are trying to order has no children it throws with:
> Unexpected exception TypeError: sortedChildren is undefined at resource://gre/modules/Bookmarks.jsm:732 ...
This should probably just work (ie, silently do nothing).
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → markh
Priority: -- → P1
| Comment hidden (mozreview-request) |
Comment 2•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8829731 [details]
Bug 1333304 - fix reordering an empty folder when missing children are specified.
https://reviewboard.mozilla.org/r/106730/#review108324
thank you!
Attachment #8829731 -
Flags: review?(mak77) → review+
Pushed by mhammond@skippinet.com.au:
https://hg.mozilla.org/integration/autoland/rev/17a37753fc3d
fix reordering an empty folder when missing children are specified. r=mak
Pushed by philringnalda@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/364a3514cddc
followup, please eslint by using double quotes
Comment 5•8 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/17a37753fc3d
https://hg.mozilla.org/mozilla-central/rev/364a3514cddc
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•