зеркало из https://github.com/mozilla/gecko-dev.git
Bug 590476 - bustage-fix [r=mbrubeck]
This commit is contained in:
Родитель
5b4a5608e4
Коммит
4136dda42b
|
@ -103,13 +103,17 @@
|
||||||
this.onPageShow(aMessage);
|
this.onPageShow(aMessage);
|
||||||
|
|
||||||
if (this.mIconURL == "" && this._documentURI) {
|
if (this.mIconURL == "" && this._documentURI) {
|
||||||
// Use documentURIObject in the favicon construction so that we
|
// newURI call is throwing for chrome URI
|
||||||
// do the right thing with about:-style error pages. Bug 515188
|
try {
|
||||||
let iconURI = Services.io.newURI(this.documentURI.prePath + "/favicon.ico", null, null);
|
// Use documentURIObject in the favicon construction so that we
|
||||||
if (!iconURI.schemeIs("javascript") && !gFaviconService.isFailedFavicon(iconURI)) {
|
// do the right thing with about:-style error pages. Bug 515188
|
||||||
gFaviconService.setAndLoadFaviconForPage(this.currentURI, iconURI, true);
|
let iconURI = Services.io.newURI(this.documentURI.prePath + "/favicon.ico", null, null);
|
||||||
this.mIconURL = iconURI.spec;
|
if (!iconURI.schemeIs("javascript") && !gFaviconService.isFailedFavicon(iconURI)) {
|
||||||
|
gFaviconService.setAndLoadFaviconForPage(this.currentURI, iconURI, true);
|
||||||
|
this.mIconURL = iconURI.spec;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
catch(e) {}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -449,7 +453,7 @@
|
||||||
LOAD_FLAGS_ALLOW_POPUPS: 32768,
|
LOAD_FLAGS_ALLOW_POPUPS: 32768,
|
||||||
LOAD_FLAGS_BYPASS_CLASSIFIER: 65536,
|
LOAD_FLAGS_BYPASS_CLASSIFIER: 65536,
|
||||||
LOAD_FLAGS_FORCE_ALLOW_COOKIES: 131072,
|
LOAD_FLAGS_FORCE_ALLOW_COOKIES: 131072,
|
||||||
|
|
||||||
STOP_NETWORK: 1,
|
STOP_NETWORK: 1,
|
||||||
STOP_CONTENT: 2,
|
STOP_CONTENT: 2,
|
||||||
STOP_ALL: 3,
|
STOP_ALL: 3,
|
||||||
|
|
|
@ -943,7 +943,7 @@ var BrowserUI = {
|
||||||
this._edit.blur();
|
this._edit.blur();
|
||||||
|
|
||||||
MenuListHelperUI.show({
|
MenuListHelperUI.show({
|
||||||
title: "TTTTTTTTTTTTTTTTTTTTTTTTTTEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEESSSSSSSSSSSSSSSSSTTTTTTTTTTTT" || Elements.browserBundle.getString("opensearch.searchWith"),
|
title: Elements.browserBundle.getString("opensearch.searchWith"),
|
||||||
menupopup: { children: BrowserSearch.engines },
|
menupopup: { children: BrowserSearch.engines },
|
||||||
set selectedIndex(aIndex) {
|
set selectedIndex(aIndex) {
|
||||||
let name = this.menupopup.children[aIndex].label;
|
let name = this.menupopup.children[aIndex].label;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче