Bug 91930: browser window doesn't show up on first launch on new/migrated profiles. r=sdagley, sr=jst

This commit is contained in:
jaggernaut%netscape.com 2001-07-24 02:57:00 +00:00
parent 2acffebc93
commit 985a55362d

View File

@ -284,7 +284,7 @@ static nsresult OpenWindow(const char *urlstr, const PRUnichar *args, const char
sarg->SetData(args); sarg->SetData(args);
nsCAutoString features("chrome,dialog=no,all"); nsCAutoString features("chrome,dialog=no,all");
if (aFeatures) { if (aFeatures && *aFeatures) {
features.Append(","); features.Append(",");
features.Append(aFeatures); features.Append(aFeatures);
} }
@ -696,10 +696,16 @@ static nsresult OpenBrowserWindow(PRInt32 height, PRInt32 width)
if (NS_FAILED(rv)) return rv; if (NS_FAILED(rv)) return rv;
nsCAutoString features; nsCAutoString features;
features.Assign("height="); if (height != NS_SIZETOCONTENT) {
features.AppendInt(height); features.Append("height=");
features.Append(",width="); features.AppendInt(height);
features.AppendInt(width); }
if (width != NS_SIZETOCONTENT) {
if (!features.IsEmpty())
features.Append(',');
features.Append("width=");
features.AppendInt(width);
}
if (!urlToLoad.IsEmpty()) { if (!urlToLoad.IsEmpty()) {
#ifdef DEBUG_CMD_LINE #ifdef DEBUG_CMD_LINE