Closed
Bug 1388250
Opened 7 years ago
Closed 7 years ago
Remove old sync isBookmarked and getBookmarkedURIFor APIs from nsINavBookmarksService
Categories
(Toolkit :: Places, enhancement)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
Bug 1388250 - Remove old sync isBookmarked and getBookmarkedURIFor APIs from nsINavBookmarksService.
59 bytes,
text/x-review-board-request
|
Paolo
:
review+
|
Details |
isBookmarked and getBookmarkedURIFor are only used in tests, and have been that way for a few releases.
As part of the work to move to the async APIs, and start removing the old ones (bug 1083465), we can drop these now.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•7 years ago
|
||
Paolo: if you're not comfortable reviewing this, feel free to forward to Drew.
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8894773 [details]
Bug 1388250 - Remove old sync isBookmarked and getBookmarkedURIFor APIs from nsINavBookmarksService.
https://reviewboard.mozilla.org/r/165942/#review171122
::: toolkit/components/places/tests/bookmarks/test_changeBookmarkURI.js:34
(Diff revision 1)
> // Ensure that the URI corresponding to aBookmarkId equals aBookmarkedUri
> do_check_true(bmsvc.getBookmarkURI(aBookmarkId).equals(aBookmarkedUri));
>
> // Ensure that aUnbookmarkedUri does not equal any URI that is bookmarked
> - uri = bmsvc.getBookmarkedURIFor(aUnbookmarkedUri);
> - do_check_eq(uri, null);
> + bm = await PlacesUtils.bookmarks.fetch({url: aUnbookmarkedUri});
> + do_check_eq(bm, null);
Sounds like you should choose between do_check_true/false(...) or do_check_eq/neq(..., null) throughout the tests. Since "fetch" returns null or the bookmark, probably the latter is better as it self-documents the function when reading the test.
Attachment #8894773 -
Flags: review?(paolo.mozmail) → review+
Comment hidden (mozreview-request) |
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7f09351b3672
Remove old sync isBookmarked and getBookmarkedURIFor APIs from nsINavBookmarksService. r=Paolo
Comment 6•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Updated•7 years ago
|
Blocks: post-57-api-changes
You need to log in
before you can comment on or make changes to this bug.
Description
•