Closed Bug 269140 Opened 20 years ago Closed 20 years ago

Firefox command line -width -height broken.

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 238607

People

(Reporter: mozilla-bugs, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.5) Gecko/20041110 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.5) Gecko/20041110 Firefox/1.0

The -height and -width options won't work in the following versions:
Debian FireFox 1.0 RC1 (on Debian Sid i686)
RedHat FireFox 1.0 Preview Release (on RedHat Fedora core2 i686)
Mozilla FireFox 1.0 (on solaris 9 sparc)

Reproducible: Always
Steps to Reproduce:
1./opt/firefox/firefox -width 300 -height 200

Actual Results:  
a window which isn't the specified size

Expected Results:  
show a window with the specified size.
Depends on: 238607
Both with and height in mozilla/toolkit/xre/nsAppRunner.cpp both get their value
by calling cmdLineArgs->GetCmdLineValue()
The other arguments are all using CheckArg(), but they don't have integer values.
nsDocShell::SetPositionAndSize from docshell/base/nsDocShell.cpp is called with
the right arguments, but is called again before the window is shown.
The width and heigt options do work if i comment out LoadSizeFromXUL(); on line
936 of mozilla/xpfe/appshell/src/nsXULWindow.cpp
Actually, removing that line seems to solve the bug. Could anybody confirm this?

I tried:
* Running w/o a ~/.mozilla
* Setting -height and -width options on the commandline
* Setting height= and width= from localstore.rdf

*** This bug has been marked as a duplicate of 238607 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
No longer depends on: 238607
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.