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

git-svn-id: svn://10.0.0.236/trunk@99778 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jaggernaut%netscape.com 2001-07-24 03:00:45 +00:00
parent 656e25b453
commit 69a64a5104

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=");
features.AppendInt(height);
features.Append(",width=");
features.AppendInt(width);
if (height != NS_SIZETOCONTENT) {
features.Append("height=");
features.AppendInt(height);
}
if (width != NS_SIZETOCONTENT) {
if (!features.IsEmpty())
features.Append(',');
features.Append("width=");
features.AppendInt(width);
}
if (!urlToLoad.IsEmpty()) {
#ifdef DEBUG_CMD_LINE