Bug 239753 - Allow 'browser.xul' as well as 'navigator.xul' to increase functionality on Firefox.

r=rginda@hacksrus.com
This commit is contained in:
silver%warwickcompsoc.co.uk 2004-04-26 10:03:32 +00:00
parent 282fcc9c33
commit 1bf50f6e9c
2 changed files with 3 additions and 2 deletions

View File

@ -81,7 +81,7 @@ function isWindowFiltered (window)
var rv = ((href.search (/^chrome:\/\/venkman\//) != -1 &&
href.search (/test/) == -1) ||
(console.prefs["enableChromeFilter"] &&
href.search (/navigator.xul($|\?)/) == -1));
href.search (/(navigator|browser).xul($|\?)/) == -1));
//dd ("isWindowFiltered " + window.location.href + ", returning " + rv);
return rv;
}

View File

@ -211,7 +211,8 @@ function WindowRecord (win, baseURL)
this.reserveChildren(true);
this.shortName = getFileFromPath (this.url);
if (console.prefs["enableChromeFilter"] && this.shortName == "navigator.xul")
if (console.prefs["enableChromeFilter"] &&
(this.shortName == "navigator.xul" || this.shortName == "browser.xul"))
{
this.displayName = MSG_NAVIGATOR_XUL;
}