Closed Bug 609848 Opened 14 years ago Closed 6 years ago

Tagged uris are not listed under tags

Categories

(Firefox :: Bookmarks & History, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: tabutils+bugzilla, Unassigned)

Details

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?
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
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
As comment 5 says, 1 tag = 1 bookmark, just bookmarking a URL isn't supported. Also legacy add-ons are no longer supported, so wontfix.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.