Note: There are a few cases of duplicates in user autocompletion which are being worked on.

Tagged uris are not listed under tags




Bookmarks & History
7 years ago
7 years ago


(Reporter: ithinc, Unassigned)


Firefox Tracking Flags

(Not tracked)




7 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv: 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: 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(""), ["asdf"]);
Actual Results:  
The tag "asdf" is listed under Recent Tags, but the uri "" 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?

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.
Ever confirmed: true

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.