Closed
Bug 111539
Opened 23 years ago
Closed 16 years ago
Command line option to open url in existing window (support -remote for Win)
Categories
(Core Graveyard :: Cmd-line Features, enhancement)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: bugzilla, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
image/jpeg
|
Details |
I would like to open a url in a current browser window from a command line.
This way I could click desktop links or links in my non-Mozilla mail client and
have them reuse the open browser window. If no window is open the command would
open a new one.
Comment 1•23 years ago
|
||
->cmd line feature
Assignee: asa → law
Component: Browser-General → XP Apps: Cmd-line Features
QA Contact: doronr → sairuh
Comment 2•23 years ago
|
||
WFM, Kevin the way to do it is mozilla -remote "openURL(http://mozilla.org)"
or similar.
If you meant something different to this, please comment. Thanks.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 3•23 years ago
|
||
John, what OS are you using? This doesn't work for me in Win2k. I have seen
blurbs about -remote, but maybe it only works on nix boxes. Perhaps I should
change this bug's OS to "non-*nix".
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
Comment 4•23 years ago
|
||
My bad. Couldn't find a dupe (!), ->NEW
OS: All → Windows 2000
Hardware: All → PC
Summary: Command line option to open url in existing window → Command line option to open url in existing window (support -remote for Win)
Comment 5•23 years ago
|
||
*** This bug has been marked as a duplicate of 75138 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 6•23 years ago
|
||
No. Bug 75138 is wonderful and I would like to see it fixed. This one is about
controlling the window opening behavior dynamically via the command line, not by
a pref (ie. statically.) Reopening
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Comment 7•23 years ago
|
||
Then I disagree with this bug. With Internet Explorer, AIM opens links in new
windows, Outlook Express reuses windows, and mIRC has a pref whether to reuse
browser windows. Why should an IRC client have that pref? We should not
encourage other apps to use commands that specifically open a new window or
reuse an existing window.
Reporter | ||
Comment 8•23 years ago
|
||
>We should not encourage other apps to use commands that specifically open a new
>window or reuse an existing window.
Apps can't be encouraged; computer users can. Why shouldn't the user decide how
these things happen? It's not in any W3C spec I know of. Besides, we already
do this in other areas. In *nix versions one can use -remote. In Windows there
is DDE. There is no reason why I shouldn't be able to have shortcuts open in
existing windows and mail links open in new windows. Eventually this capability
should extend to tabs as well.
Comment 9•23 years ago
|
||
Kevin, I think we agree that the user should have control, but disagree about
how to give the user control. I think having an option in the browser (bug
75138) is the best way to give the user control, because it doesn't require the
user to tweak prefs in every app to get each app to cooperate. Having
command-line options for "reuse window", etc. would make it more likely for app
authors to make /their/ personal preferences the default for their apps, and
would also make it more likely for app authors to include unnecessary options in
their apps.
Comment 10•22 years ago
|
||
Here is a screenshot showing how an application can take advantage of multiple
command-line options. I will choose a different option based on whether I want
to save what's in the frontmost Mozilla window or not.
Please mark NEW. Get this off the uncomfirmed list.
Comment 11•22 years ago
|
||
I' confirming this because I believe its a valid request. If a developer doesn't
think so, then he or she can change its resolution to WONTFIX, etc, but this
doesn't belong on the uncomfirmed list.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 12•22 years ago
|
||
Netdemon: in comment 9 I said Mozilla should disourage other apps from including
what should be Mozilla preferences in their preferences. Your screenshot shows
an application making "open link in Mozilla" a submenu of the context menu where
each item in the context menu should be a Mozilla pref, which is even worse than
having a misplaced pref. I don't understand why you think the screenshot is an
argument for Mozilla to support specific command-line options like "open in
existing window" or "open in a new tab in an existing window"; I think it's a
great argument against having those command-line options.
Comment 13•22 years ago
|
||
Sorry, I don't quite understand what you are getting at. :-(
Comment 14•22 years ago
|
||
Jesse, I think your comment is irrelevant on Unix because this functionality is
already there through the "-remote" options in the command line. Bug 158172
addresses the lack of this functionality on other OS's.
Comment 15•22 years ago
|
||
davor: just because something has been implemented doesn't mean it was the right
thing to do. I agree with jesse, I should be able to specify in mozilla what
hpapens when an app gives mozilla an url.
The reason is pretty simple, I don't want to get five applications say aim, icq,
mirc, outlook, and realplayer each having either a pref to decide how to control
my browser or just have made the decision about how to abuse my browser.
Suppose for fun that i had two mozilla profiles, in one I like to open links in
new windows and in another I like to open links in new tabs. If you hardcode the
newtab option into the registry, then the fact that a mozilla profile wants to
have a preference won't work, because you've created a feature which causes the
external agent (like a webpage) to dictate how the web browser should behave.
we shouldn't do this. just like we shouldn't let webpages call window.openTab()
[which doesn't exist, but you can guess what it would do].
Comment 16•22 years ago
|
||
Does this mean if on Windows an application executes something like "rundll32
url.dll,FileProtocolHandler <url>", there is a Mozilla preference whether it
will open a new window, a new tab, or reuse an existing window? That would be
useful.
And we may be talking purely about personal preferences here, because I would
prefer to have at least an option to have per-application control of how they
interact with Mozilla to open Web pages. For example, when I click on a link in
my mailer, I like to just open a new tab; but when say an IDE uses Mozilla to
browse its help system, I want it in a separate window.
It sounds like you would prefer to get this kind of behaviour through using
different profiles. I'm not too keen on that solution because other than opening
urls I want to keep all of my other preferences, bookmarks, and cache across
those profiles.
Updated•18 years ago
|
Assignee: law → nobody
QA Contact: bugzilla
Comment 17•16 years ago
|
||
External links are now handled using browser preferences.
Status: NEW → RESOLVED
Closed: 23 years ago → 16 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 18•16 years ago
|
||
Not that I care anymore, but external links have been handled by preferences for a long time. That's not what this bug was about, as addressed in comment #6. It is about telling Mozilla how to open links specified on the command-line on Windows. More generally it would include all of the -remote options that are available on non-Windows platforms.
I won't re-open, as it should probably be closed as 'wontfix' anyway.
You need to log in
before you can comment on or make changes to this bug.
Description
•