Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Aug 2004 18:17:25 GMT
From:      "John R. Makosky" <jrm-spam1@crackpot.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/70671: firefox does not handle multiple invocations with URL argument correctly
Message-ID:  <200408191817.i7JIHPsM018286@www.freebsd.org>
Resent-Message-ID: <200408191820.i7JIKG9r040574@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408191817.i7JIHPsM018286>