mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 91930: browser window doesn't show up on first launch on new/migrated profiles. r=sdagley, sr=jst
This commit is contained in:
parent
2acffebc93
commit
985a55362d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user