Closed
Bug 1096856
Opened 11 years ago
Closed 11 years ago
fetch({ url }) should exclude tags (like PlacesUtils.getBookmarksForURI)
Categories
(Toolkit :: Places, defect)
Toolkit
Places
Tracking
()
People
(Reporter: asaf, Assigned: asaf)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
3.83 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
Synchronous PlacesUtils.getBookmarksForURI excludes tags. Every caller that depends on this behavior (we have a couple dozens) cannot migrate to the new asynchronous fetch API, as it doesn't exclude tags from its search.
This also blocks porting PlacesTransactions.EditUrl to Bookmark.jsm.
Updated•11 years ago
|
Blocks: placesAsyncBookmarks
Points: --- → 2
Flags: qe-verify-
Flags: in-testsuite?
Flags: firefox-backlog+
Updated•11 years ago
|
Points: 2 → 3
| Assignee | ||
Comment 1•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Iteration: --- → 36.3
Comment 2•11 years ago
|
||
Comment on attachment 8527629 [details] [diff] [review]
patch
Review of attachment 8527629 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/places/Bookmarks.jsm
@@ +967,5 @@
>
> return rows.length ? rowsToItemsArray(rows)[0] : null;
> }
>
> +function* fetchBookmarksByURL(info, excludeTags = false) {
per irc discussion, this should ALWAYS exclude tags
::: toolkit/components/places/tests/bookmarks/test_bookmarks_fetch.js
@@ +255,5 @@
> title: "a bookmark" });
> checkBookmarkObject(bm1);
>
> + // Also ensure that fecth-by-url excludes the tags folder.
> + PlacesUtils.tagging.tagURI(uri(bm1.url.href), ["Test Tag"]);
please untag before exiting the test, let's not risk to pollute next tests.
Attachment #8527629 -
Flags: review?(mak77) → review+
Updated•11 years ago
|
Iteration: 36.3 → 37.1
| Assignee | ||
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in
before you can comment on or make changes to this bug.
Description
•