How to display favicons in ubiquity
Hi,
does anybody know if there is a way to display favicons from browser cache?
Currently I'm fetching favicons with:
var faviconService = Components.classes["@mozilla.org/browser/favicon-service;1"]
.getService(Components.interfaces.nsIFaviconService);
faviconService.getFaviconImageForPage(uri);
The img tag doesn't display links, unless I remove the "moz-anno:favicon:", but then they are downloaded, and not fetched from the cache.
does anybody know if there is a way to display favicons from browser cache?
Currently I'm fetching favicons with:
var faviconService = Components.classes["@mozilla.org/browser/favicon-service;1"]
.getService(Components.interfaces.nsIFaviconService);
faviconService.getFaviconImageForPage(uri);
The img tag doesn't display links, unless I remove the "moz-anno:favicon:", but then they are downloaded, and not fetched from the cache.
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?moz-anno: doesn't work because of security. Try getFaviconDataAsDataURL.
1 person says
this answers the question
Loading Profile...




EMPLOYEE