Bug 365570 - FeedWriter doesn't work with handlers with chrome:// URI (throws exception when downloading favicon). r=gavin.
This commit is contained in:
@@ -715,7 +715,7 @@ FeedWriter.prototype = {
|
||||
// For privacy reasons we cannot set the image attribute directly
|
||||
// to the icon url, see Bug 358878
|
||||
var uri = makeURI(handlers[i].uri);
|
||||
if (uri)
|
||||
if (uri && /^https?/.test(uri.scheme))
|
||||
new iconDataURIGenerator(uri.prePath + "/favicon.ico", menuItem)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user