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);
nsCAutoString features("chrome,dialog=no,all");
if (aFeatures) {
if (aFeatures && *aFeatures) {
features.Append(",");
features.Append(aFeatures);
}
@ -696,10 +696,16 @@ static nsresult OpenBrowserWindow(PRInt32 height, PRInt32 width)
if (NS_FAILED(rv)) return rv;
nsCAutoString features;
features.Assign("height=");
if (height != NS_SIZETOCONTENT) {
features.Append("height=");
features.AppendInt(height);
features.Append(",width=");
}
if (width != NS_SIZETOCONTENT) {
if (!features.IsEmpty())
features.Append(',');
features.Append("width=");
features.AppendInt(width);
}
if (!urlToLoad.IsEmpty()) {
#ifdef DEBUG_CMD_LINE