Firefox ignores -height and -width options

Bug #5104 reported by ed on 2005-11-28
22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Fix Released
Medium
firefox (Ubuntu)
Medium
Mozilla Bugs
firefox-3.0 (Ubuntu)
Medium
Unassigned
firefox-3.5 (Ubuntu)
Medium
Unassigned
mozilla-firefox (Debian)
Fix Released
Unknown

Bug Description

When launching Firefox I used:
/usr/bin/firefox -height 600 -width 800

This used to work in an older version of Firefox. But the options no longer have any effect for this version of Firefox running in Ubuntu 5.10.

This Firefox version always run with the windows size set by the last user and ignored the height and width options. Sometimes users may accidentally made the browser window size very small. I was relying on putting the width and height options in the launcher properties to ensure the browser size is reset every time its run. But this approach is now broken in this version.

Revision history for this message
lexual (lexhider) wrote :

Can confirm for firefox 1.4.99+1.5

Changed in mozilla-firefox:
status: Unconfirmed → Confirmed
Revision history for this message
Jonathan Carter (jonathan) wrote :

Can confirm for 1.5.0.3

Perhaps it's intentionally removed by upstream?

Changed in firefox:
status: Unconfirmed → Confirmed
Revision history for this message
Daniel Robitaille (robitaille) wrote :

Still present in Edgy (Firefox 2).

Revision history for this message
Matthew Campbell (mcc) wrote :

Also can confirm still present in edgy with firefox 2. I would like to see this fixed.

David Farning (dfarning) on 2006-12-31
Changed in firefox:
assignee: nobody → mozillabugs
David Farning (dfarning) on 2007-02-24
Changed in firefox:
assignee: mozillateam → mozilla-bugs
Revision history for this message
Alexander Sack (asac) wrote :

does the MOZ_NO_REMOTE workaround in suggested in upstream bug (https://bugzilla.mozilla.org/show_bug.cgi?id=50201#c18) help?

Revision history for this message
dvh (dusan-halicky) wrote :

I confirm this, but it strangely sometimes work and sometimes don't. In most cases, it does'n work but when I close or open another firefox, it become to work and then continue to work. Then it randomly stop to work. I use this command:

firefox -chrome http://google.com/ -width 800 -height 600

Revision history for this message
Jonathan Carter (jonathan) wrote :

I confirm that this bug is still present in Ubuntu 7.10 (Gutsy).

Alexander, the MOZ_NO_REMOTE workaround seems to have no effect.

Revision history for this message
In , Jim Rees (rees) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008061015 Firefox/3.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008061015 Firefox/3.0

"firefox --help" lists the "height" and "width" command line options, which haven't worked in a decade and seem unlikely to work in the future (see bug #20573). These options should be removed.

Reproducible: Always

Steps to Reproduce:
1.Run "firefox --help"
Actual Results:
"height" and "width" command line options are listed

Expected Results:
These options should not be listed, and if given should be rejected

Revision history for this message
In , Mkmelin+mozilla (mkmelin+mozilla) wrote :

Created attachment 329327
proposed fix

Don't list -height and -width options in the help since they aren't working anyway.

Revision history for this message
In , Gavin Sharp (gavin-sharp) wrote :

Why don't they work? Is there a bug filed (bug 20573 is unrelated as far as I can tell)? Looking at http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/browser/components/nsBrowserContentHandler.js&rev=1.49&mark=626-632#621 I don't see offhand why they wouldn't.

Revision history for this message
In , Mkmelin+mozilla (mkmelin+mozilla) wrote :

I don't know why it doesn't work, but it doesn't and seeing the age of bug 50201 apparently haven't at least since 2000. I just retested it both in gnome and kde, they have no effect whatsoever.

In thunderbird i get "Warning: unrecognized command line flag -height".

Revision history for this message
In , Gavin Sharp (gavin-sharp) wrote :

Comment on attachment 329327
proposed fix

OK. I guess these should be handled in app-specific handlers anyways (and therefore added to their nsICommandLineHandler's helpInfo once they work there). Can you file bugs on Firefox and Thunderbird on fixing these? Bug 50201 should probably be turned into a SeaMonkey bug.

Revision history for this message
iu1j4 (y0g1) wrote :

Can confirm for firefox 3.0.1

Revision history for this message
In , Mkmelin+mozilla (mkmelin+mozilla) wrote :

Created follow-up bugs bug 450852 and bug 450853.

Revision history for this message
In , Gavin Sharp (gavin-sharp) wrote :

Magnus: so this is ready to land, right?

Revision history for this message
In , Mkmelin+mozilla (mkmelin+mozilla) wrote :

Yes, i've just be been away/busy. +no good tree when i'd have had the time to land it.

Revision history for this message
In , Mkmelin+mozilla (mkmelin+mozilla) wrote :
Revision history for this message
In , Mkmelin+mozilla (mkmelin+mozilla) wrote :

Removed the options from the dev pages. This was the earlier version:
http://developer.mozilla.org/index.php?title=En/Command_Line_Options&revision=20

Revision history for this message
Ted (ted-l-wood) wrote :

Confirmed still in Ubuntu 8.10 with Firefox 3.0.4.

If you run: "firefox -chrome http://google.com/ -width 800 -height 600" it will work. However, if you run, "firefox -width 800 -height 600" or "firefox http://google.com/ -width 800 -height 600" it will not work. Looks like it requires the -chrome argument to work properly.

Revision history for this message
Basic (basicxp) wrote :

Problem remains in both Ubuntu 9.04 and Windows on version 3.5.
I tried to run it with -chrome attribute, so I got a window with title (window name) beyond screen bounds!

Revision history for this message
Micah Gersten (micahg) wrote :

New Upstream Bug is to remove options from help menu

Changed in firefox:
status: Confirmed → Unknown
Revision history for this message
Micah Gersten (micahg) wrote :

Firefox 2 is EOL

Changed in firefox (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
Micah Gersten (micahg) wrote :

Firefox 3.0 is only receiving Security Updates and major bug fixes at this point.

Changed in firefox-3.0 (Ubuntu):
importance: Undecided → Medium
status: New → Won't Fix
Revision history for this message
Micah Gersten (micahg) wrote :

This was fixed with the initial release of Firefox 3.5
The options have been removed from the help information on the console.

Changed in firefox-3.5 (Ubuntu):
importance: Undecided → Medium
status: New → Fix Released
Changed in firefox:
status: Unknown → Fix Released
Changed in mozilla-firefox (Debian):
status: Confirmed → Fix Released
Changed in firefox:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.