Backed out changeset 2c11770a86dc (bug 1939658) for causing failures at test_JsonSchemaValidator.js. CLOSED TREE

This commit is contained in:
Butkovits Atila
2025-02-04 13:07:29 +02:00
parent a1e5bc12aa
commit b061588f31
79 changed files with 620 additions and 451 deletions

View File

@@ -203,11 +203,13 @@ var gBrowserInit = {
// Hack to ensure that the various initial pages favicon is loaded
// instantaneously, to avoid flickering and improve perceived performance.
this._callWithURIToLoad(uriToLoad => {
let url = URL.parse(uriToLoad);
if (!url) {
let url;
try {
url = Services.io.newURI(uriToLoad);
} catch (e) {
return;
}
let nonQuery = url.URI.prePath + url.pathname;
let nonQuery = url.prePath + url.filePath;
if (nonQuery in gPageIcons) {
gBrowser.setIcon(gBrowser.selectedTab, gPageIcons[nonQuery]);
}