ports/70671: firefox does not handle multiple invocations with URL argument correctly
John R. Makosky
jrm-spam1 at crackpot.org
Thu Aug 19 18:20:21 UTC 2004
>Number: 70671
>Category: ports
>Synopsis: firefox does not handle multiple invocations with URL argument correctly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Aug 19 18:20:16 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: John R. Makosky
>Release: 4.10-stable
>Organization:
>Environment:
FreeBSD cracker 4.10-STABLE FreeBSD 4.10-STABLE #0: Tue Aug 17 18:59:44 CDT 2004 root at cracker:/usr/obj/usr/src/sys/CRACKER i386
>Description:
If a new instance of firebird is started with a URL argument, while one is already running, the user is prompted to select an alternate profile, or create a new one. Correct behavior is to use the current profile, and open a new window with the new URL.
This is especially troublesome when firefox is specified as the preferred browser in the Gnome "Preferred Applications" dialog, and one clicks on a URL in a Gnome application while firefox is already running.
>How-To-Repeat:
% firefox http://some_site &
(wait for firefox to start)
% firefox http://some_other_site &
(profile-select/create dialog appears, instead of new window)
>Fix:
The real cause of the problem is not known, but a workaround patch to /usr/X11R6/lib/firefox/bin/firefox follows:
<pre>
--- /dev/null Thu Aug 19 13:05:18 2004
+++ /usr/ports/www/firefox/files/patch-mozilla.in Thu Aug 19 12:28:17 2004
@@ -0,0 +1,11 @@
+--- browser/app/mozilla.in.orig Thu Aug 19 12:11:22 2004
++++ browser/app/mozilla.in Thu Aug 19 12:26:16 2004
+@@ -138,6 +138,8 @@
+
+ if [ $ALREADY_RUNNING -eq 1 ] && [ -z "$1" ]; then
+ exec $MOZ_CLIENT_PROGRAM -a firefox "xfeDoCommand(openBrowser)" 2>/dev/null >/dev/null
++elif [ $ALREADY_RUNNING -eq 1 ] && [ ! -z "$1" ]; then
++ exec $MOZ_CLIENT_PROGRAM -a firefox "openURL($1,new-window)" 2>/dev/null >/dev/null
+ fi
+ # End of section that checks for currently running instance. - jtg
+
</pre>
Patch may also be obtained here:
http://www.crackpot.org/~jrm/firefox.patch
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list