Bug 1048664 - Fallback to /favicon.ico if an imageDocument is too large to use as a tab icon. r=dao ui-r=phlsa

This commit is contained in:
Matthew Noorenberghe 2014-08-09 02:11:27 -07:00
parent 55dd0d3812
commit d38fc7305f

View File

@ -896,9 +896,10 @@
}
}
}
// Use documentURIObject in the check for shouldLoadFavIcon so that we
// do the right thing with about:-style error pages. Bug 453442
else if (this.shouldLoadFavIcon(documentURI)) {
if (!icon && this.shouldLoadFavIcon(documentURI)) {
let url = documentURI.prePath + "/favicon.ico";
if (!this.isFailedIcon(url))
icon = url;