Tagged uris are not listed under tags

NEW
Unassigned

Status

()

Firefox
Bookmarks & History
7 years ago
7 years ago

People

(Reporter: ithinc, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)

Some tagged uris are not listed under tags.

Reproducible: Always

Steps to Reproduce:
1. PlacesUtils.tagging.tagURI(makeURI("http://asdf.com"), ["asdf"]);
2.
3.
Actual Results:  
The tag "asdf" is listed under Recent Tags, but the uri "http://asdf.com" is not listed under tag "asdf".
I need better steps to reproduce, what you say above seems to work fine.
Is this a problem only in Recent Tags? does the uri appear in the Library under Tags?
(Reporter)

Comment 2

7 years ago
No, it doesn't appear in the Library either.

Steps: Open a javascript shell, and execute the above. Note that the uri should be not bookmarked before.
so, yes, the API does not tell anything, and that's bad, taggingURI assumes that the uri is bookmarked somewhere, we usually add to unsorted bookmarks before tagging. 
To clarify tagging service creates the entry but tag queries are doing a remapping of the entries to real bookmarks. If a real bookmark is not found the tagged uri won't be shown.

For your case you can just check if uri is already bookmarked, if not add it, check the code in PlacesUIUtils.ptm.tagURI(uri,[tag]);

We can most likely fix this for FX4.0 too.
Status: UNCONFIRMED → NEW
Ever confirmed: true
(Reporter)

Comment 4

7 years ago
For my case, I don't want to add a bookmark in the unsorted bookmarks folder. I just want the tagged uri shown under tags.
there is no other way than adding a bookmark, 1 tag = 1 bookmark
You need to log in before you can comment on or make changes to this bug.