Closed Bug 155210 Opened 22 years ago Closed 22 years ago

mozilla -jsconsole <url> tries to load URL as chrome

Categories

(Core Graveyard :: Cmd-line Features, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 74303

People

(Reporter: shanmu, Assigned: law)

References

()

Details

mozilla --sync --no-xshm -jsconsole  http://camera01.cs.wustl.edu

This brings up two navigator windows with smallest possible height.
This happens only when with url. 
if I try the same experiment with java.sun.com (or any other)
two windows appear, but the windows have no menus in it. 

I saw the same behaviour on a Linux too.
when you do

mozilla -jsconsole URL

what you are telling it is to bring up the javscript console, and have it (the
javascript console) load the URL.
Got it. 
But isn't the problem that the windows are tiny (with
http://camera01.cs.wustl.edu)  a bug?
ok, when you do "-jsconsole URL", it initially tries to do javascript console,
but that doesn't take arguments (URL is an argument for jsconsole).  When it
realizes that, it takes URL to be the chrome.  you should get the same behavior with

mozilla -chrome http://camera01.cs.wustl.edu

if this is a bug, it's in command-line handling
Assignee: Matti → law
Component: Browser-General → XP Apps: Cmd-line Features
QA Contact: imajes-qa → sairuh
On a Linux machine I typed
mozilla -chrome http://camera01.cs.wustl.edu

(Cancelled  the username/password dialog box)
I got a tiny window. 
-chrome foo means take foo and use it as chrome, the cancel causes the page to
be effectively empty, there's no bug there.
OS: OSF/1 → All
Hardware: DEC → All
Even if I type a valid  Username and password the window height and width
is the minimum.
I tried -chrome with a couple of web pages, and it gave very bizarre results
each time. but that's not a bug - you must expect it to do bizarre things if you
tell it to do bizarre things.

the question is why does:
mozilla -jsconsole URL
try and launch the URL as chrome?

when the -jsconsole doesn't take an argument, shouldn't it take the URL as a URL?

apologies if i'm way off base here, or this should be a dupe of one of the other
command line parsing bugs, but this seems wrong to me. confirming, and
resummarising.
Severity: major → normal
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Browser comes up with height < 1cm. → mozilla -jsconsole <url> tries to load URL as chrome
> the question is why does:
> mozilla -jsconsole URL
> try and launch the URL as chrome?
> 
> when the -jsconsole doesn't take an argument, shouldn't it take the URL as a 
> URL?

bug 74303
ok, so if the only issue here is the command line parsing, and that's covered by
the other bug, then this is a dupe, right?  marking as such, please thwap me if
you disagree...

*** This bug has been marked as a duplicate of 74303 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
v dup.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.