Closed
Bug 1316348
Opened 8 years ago
Closed 7 years ago
Update eraseEverything in Bookmarks.jsm to notify at least the top-level folders
Categories
(Toolkit :: Places, defect, P1)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: bsilverberg, Assigned: standard8)
References
Details
(Whiteboard: [fxsearch])
Attachments
(1 file)
In bug 1221764 removeFoldersContents was updated to pass isDescendantRemoval: true to the onItemRemoved notification. The problem this introduces is that when eraseEverything calls removeFoldersContents, it will also pass that argument and any observers that are configured to ignore notifications with isDescendantRemoval: true will ignore all of the removals, including the top-level folders. The observer in the WebExtensions API is configured thusly, and therefore will ignore all notifications.
To remedy this we should emit notifications for the top-level folders (that is any folder that is a direct ancestor of menu/toolbar/unfiled) that are removed by eraseEverything.
Updated•8 years ago
|
Priority: -- → P2
Updated•7 years ago
|
Comment 1•7 years ago
|
||
another possible alternative is bug 1087580, so have a single notification, instead of one for each folder in each root.
The difference is that with bug 1087580 we need to add a new notification, and hook up all the consumers to it, while with this fix we basically re-use the existing notification and consumers already know how to handle it.
This is probably "safer" short term, so I'd likely leave bug 1087580 to be done when we redo the whole notifications system in bug 1340498.
Updated•7 years ago
|
Priority: P2 → P1
Whiteboard: [fxsearch]
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → standard8
Updated•7 years ago
|
Status: NEW → ASSIGNED
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8900284 [details]
Bug 1316348 - Make eraseEverything notify for removals within the top-level bookmarks folders to ensure correct updates on the UI.
https://reviewboard.mozilla.org/r/171676/#review177450
Attachment #8900284 -
Flags: review?(mak77) → review+
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/556e8de56fb2
Make eraseEverything notify for removals within the top-level bookmarks folders to ensure correct updates on the UI. r=mak
Comment 5•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in
before you can comment on or make changes to this bug.
Description
•