Backed out changeset 2c11770a86dc (bug 1939658) for causing failures at test_JsonSchemaValidator.js. CLOSED TREE
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user