Closed
Bug 1432405
Opened 8 years ago
Closed 7 years ago
Investigate using getConcreteItemGuid in PlacesController._removeRange
Categories
(Firefox :: Bookmarks & History, enhancement, P2)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
People
(Reporter: standard8, Assigned: mak)
References
Details
(Whiteboard: [fxsearch])
In bug 1131491 I attempted to replace:
```
let tagItemId = PlacesUtils.getConcreteItemId(node.parent);
let tagGuid = await PlacesUtils.promiseItemGuid(tagItemId);
```
with
let tagGuid = PlacesUtils.getConcreteItemGuid(node.parent);
However, for some reason that didn't work as it should have done - it broke some tests.
We should investigate this & work out why.
Reporter | ||
Comment 1•8 years ago
|
||
I did a bit more investigation, changing the code breaks at least browser/components/places/tests/browser/browser_library_delete_bookmarks_in_tags.js and possibly a few others.
On investigation, it turns out that getConcreteItemGuid doesn't handle tag queries like getConcreteItemId does. This appears to be because folders based queries are still using ids rather than guids, so getConcreteItemGuid wouldn't have anything to return (or we'd have to change it to be async, which would likely cause other issues).
Hence we need to wait for bug 824502 before we can fix this.
Assignee: standard8 → nobody
Depends on: 824502
Reporter | ||
Updated•7 years ago
|
Priority: P2 → P3
Assignee | ||
Comment 2•7 years ago
|
||
(In reply to Mark Banner (:standard8) (afk until 3rd April) from comment #1)
> I did a bit more investigation, changing the code breaks at least
> browser/components/places/tests/browser/
> browser_library_delete_bookmarks_in_tags.js and possibly a few others.
>
> On investigation, it turns out that getConcreteItemGuid doesn't handle tag
> queries like getConcreteItemId does.
Is this still a problem?
Flags: needinfo?(standard8)
Reporter | ||
Comment 3•7 years ago
|
||
Post bug 1421664 this doesn't appear to be an issue, once we remove the old code, which I'm assuming bug 1293445 is likely to do.
Assignee | ||
Updated•7 years ago
|
Priority: P3 → P2
Reporter | ||
Comment 4•7 years ago
|
||
Bug 1293445 has removed this code.
Assignee: nobody → mak77
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•