bug 303836 - Nulling the home page location causes the first window to be unmaximizable, r=bsmedberg
This commit is contained in:
@@ -367,6 +367,13 @@ var nsBrowserContentHandler = {
|
|||||||
|
|
||||||
var uri = prefb.getComplexValue("browser.startup.homepage",
|
var uri = prefb.getComplexValue("browser.startup.homepage",
|
||||||
nsIPrefLocalizedString).data;
|
nsIPrefLocalizedString).data;
|
||||||
|
|
||||||
|
if (!uri) {
|
||||||
|
prefb.clearUserPref("browser.startup.homepage");
|
||||||
|
uri = prefb.getComplexValue("browser.startup.homepage",
|
||||||
|
nsIPrefLocalizedString).data;
|
||||||
|
}
|
||||||
|
|
||||||
var count;
|
var count;
|
||||||
try {
|
try {
|
||||||
count = prefb.getIntPref("browser.startup.homepage.count");
|
count = prefb.getIntPref("browser.startup.homepage.count");
|
||||||
|
|||||||
Reference in New Issue
Block a user