Red Hat Bugzilla – Bug 40836
/usr/bin/mozilla should have an option to open all URLs in a new window
Last modified: 2008-05-01 11:38:00 EDT
It would be nice if /usr/bin/mozilla would consult some config file
(preferably - both system-wide and user-level config files) to choose
whether to use the "new-window" flag on -remote "openurl(...)". Otherwise I
have to remember to edit /usr/bin/mozilla every time I want to switch the
version of Mozilla I am using. :-)
This is especially important in light of
http://bugzilla.mozilla.org/show_bug.cgi?id=41527 - in the current builds of
Mozilla openurl would not work at all without the new-window argument.
That's up to the person calling -remote. I don't want to add strange defaults.
Plus, the openurl problems have been fixed in 0.9.1 which should be in rawhide
But it's not the caller who specified the -remote option, it's the
/usr/bin/mozilla (that comes with the RPM) script that does it!
1) Run /usr/bin/mozilla http://www.redhat.com/
One of the current browser windows goes to http://www.redhat.com/
A new window is opened with http://www.redhat.com/
Currently, I achieve the desired result by editing /usr/bin/mozilla and replacing
$MOZ_PROGRAM -remote "openurl($opt)" 2>/dev/null > /dev/null
$MOZ_PROGRAM -remote "openurl($opt,new-window)" 2>/dev/null > /dev/null
Unfortunatelly, I have to do it every time I upgrade the RPM (which I do pretty
It would be better if /usr/bin/mozilla would consult the environment or some
config file to decide whether do openurl($opt) or openurl($opt,new-window)
I don't want to have more than one way to specify the same option. If you want,
wander over to mozilla's bug tracking system and whip up a patch that ads a
real mozilla pref for defaulting all openurl() requests to a new window. It
should be 6 lines of C++ and a new pref panel.
No, such Mozilla pref would not be the right thing IMHO. What I want is to
change behaviour of /usr/bin/mozilla, not of Mozilla. I.e. I want:
/usr/bin/mozilla -remote openurl(URL) => URL opened in a current window
/usr/bin/mozilla -remote openurl(URL,new-window) => URL opened in a new window
/usr/bin/mozilla URL => URL opened in a new window
(or current/new depending on some outside preference)
OK, simplier request - can you make /usr/bin/mozilla a %config file (or even
%config(noreplace) ) so that people like me can mess with it without having to
do something about it at each upgrade to latest nightly? Thanks!
Default browser is now firefox, and this is fixed there. See bug 138789.
Wontfix for this one.