All users were logged out of Bugzilla on October 13th, 2018

Secure favicon.ico (using nsIFaviconService and setAndLoadFaviconForPage) request pop-ups certificate error dialog




10 years ago
8 years ago


(Reporter: karl, Unassigned)


Firefox Tracking Flags

(Not tracked)


(Whiteboard: [CLOSEME 2010-11-01])



10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/2008120122 Firefox/3.0.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20090105 Minefield/3.2a1pre

When attempting to retrieve a favicon from a site with an invalid certificate by using nsIFaviconService the invalid certificate error dialog appears.

Reproducible: Always

Steps to Reproduce:
1. run the following code with chrome privileges
function testFavicon(){
    function urlToURI(url){
        return Components.classes[";1"].getService(Components.interfaces.nsIIOService).newURI(url, null, null);
    var url = '';
    var uriIcon = urlToURI(url);
    var faviconService = Components.classes[";1"].getService(Components.interfaces.nsIFaviconService);
    var uriPage = urlToURI(uriIcon.prePath);
    faviconService.setAndLoadFaviconForPage(uriPage, uriIcon, false);

Actual Results:  
An invalid certificate error dialog appears

Expected Results:  
No dialog should appear, but the faviconService.setAndLoadFaviconForPage() function should throw an error. 
This error should be trappable (using try/catch) so that a extension developer can attempt to retrieve a favicon in the background without invalid certificate dialogs appearing for no reason.

The bug was fixed in 3.0 builds, but appears to have reverted
#453442 ( is very similar too this bug, however I am unable to re-open the ticket.
This is a mass search for bugs which are in the Firefox General component, are
UNCO, have not been changed for 500 days and have an unspecified version. 

Reporter, can you please update to Firefox 3.6.10 or later, create a fresh profile,, and test again. If you still see the issue, please update this bug. If the issue is gone, please set the status to RESOLVED > WORKSFORME.
Whiteboard: [CLOSEME 2010-11-01]
No reply from reporter, INCOMPLETE. Please retest with Firefox 3.6.12 or later and a new profile ( If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.