Bug 590549 - Favicon missing from items in History tab within AwesomeScreen [r=mfinkle]

This commit is contained in:
Vivien Nicolas 2010-08-27 00:51:36 +02:00
Родитель dd333f487f
Коммит b446c23aa8
2 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -102,8 +102,15 @@
case "pageshow":
this.onPageShow(aMessage);
if (this.mIconURL == "" && this._documentURI)
this.mIconURL = this.documentURI.prePath + "/favicon.ico";
if (this.mIconURL == "" && this._documentURI) {
// Use documentURIObject in the favicon construction so that we
// do the right thing with about:-style error pages. Bug 515188
let iconURI = Services.io.newURI(this.documentURI.prePath + "/favicon.ico", null, null);
if (!iconURI.schemeIs("javascript") && !gFaviconService.isFailedFavicon(iconURI)) {
gFaviconService.setAndLoadFaviconForPage(this.currentURI, iconURI, true);
this.mIconURL = iconURI.spec;
}
}
break;
case "pagehide":

Просмотреть файл

@ -767,6 +767,7 @@ placeitem > .bookmark-manage > image {
-moz-margin-start: 8px;
}
.autocomplete-item-label > image[src=""],
placeitem[src=""] .bookmark-item-label > image {
list-style-image: url(chrome://mozapps/skin/places/defaultFavicon.png);
}