User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:184.108.40.206) 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:220.127.116.11) Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)
Some tagged uris are not listed under tags.
Steps to Reproduce:
1. PlacesUtils.tagging.tagURI(makeURI("http://asdf.com"), ["asdf"]);
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?
No, it doesn't appear in the Library either.
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.
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