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

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

RESOLVED INCOMPLETE

Status

()

RESOLVED INCOMPLETE
10 years ago
8 years ago

People

(Reporter: karl, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

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

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) 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
2. 
function testFavicon(){
    
    function urlToURI(url){
        return Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService).newURI(url, null, null);
    }
    
    var url = 'https://beta.interclue.com/favicon.ico';
    
    var uriIcon = urlToURI(url);
    var faviconService = Components.classes["@mozilla.org/browser/favicon-service;1"].getService(Components.interfaces.nsIFaviconService);
    var uriPage = urlToURI(uriIcon.prePath);
    faviconService.setAndLoadFaviconForPage(uriPage, uriIcon, false);
}
testFavicon();

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 (https://bugzilla.mozilla.org/show_bug.cgi?id=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, http://support.mozilla.com/en-US/kb/managing+profiles, 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 (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.