From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 19 18:20:21 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D06916A550 for ; Thu, 19 Aug 2004 18:20:20 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BA0043D45 for ; Thu, 19 Aug 2004 18:20:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i7JIKG2o040580 for ; Thu, 19 Aug 2004 18:20:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i7JIKG9r040574; Thu, 19 Aug 2004 18:20:16 GMT (envelope-from gnats) Resent-Date: Thu, 19 Aug 2004 18:20:16 GMT Resent-Message-Id: <200408191820.i7JIKG9r040574@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "John R. Makosky" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B84216A4CE for ; Thu, 19 Aug 2004 18:17:26 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12B8543D4C for ; Thu, 19 Aug 2004 18:17:26 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i7JIHPpx018287 for ; Thu, 19 Aug 2004 18:17:25 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i7JIHPsM018286; Thu, 19 Aug 2004 18:17:25 GMT (envelope-from nobody) Message-Id: <200408191817.i7JIHPsM018286@www.freebsd.org> Date: Thu, 19 Aug 2004 18:17:25 GMT From: "John R. Makosky" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: ports/70671: firefox does not handle multiple invocations with URL argument correctly X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2004 18:20:21 -0000 >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:
--- /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
+
Patch may also be obtained here: http://www.crackpot.org/~jrm/firefox.patch >Release-Note: >Audit-Trail: >Unformatted: