bug 303836 - Nulling the home page location causes the first window to be unmaximizable, r=bsmedberg

This commit is contained in:
mconnor@steelgryphon.com
2005-08-25 05:28:37 +00:00
parent 62da15a3a2
commit 74e8fa5e2b

View File

@@ -367,6 +367,13 @@ var nsBrowserContentHandler = {
var uri = prefb.getComplexValue("browser.startup.homepage",
nsIPrefLocalizedString).data;
if (!uri) {
prefb.clearUserPref("browser.startup.homepage");
uri = prefb.getComplexValue("browser.startup.homepage",
nsIPrefLocalizedString).data;
}
var count;
try {
count = prefb.getIntPref("browser.startup.homepage.count");