From nobody Tue Dec 07 11:03:27 2021 X-Original-To: gecko@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 55D9318C821D for ; Tue, 7 Dec 2021 11:03:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J7cq40fLGz4hTB for ; Tue, 7 Dec 2021 11:03:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EB2381E8AF for ; Tue, 7 Dec 2021 11:03:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1B7B3RR1059953 for ; Tue, 7 Dec 2021 11:03:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B7B3RLc059952 for gecko@FreeBSD.org; Tue, 7 Dec 2021 11:03:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: gecko@FreeBSD.org Subject: [Bug 260239] www/firefox: Can't open URL in running instance Date: Tue, 07 Dec 2021 11:03:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Gecko Rendering Engine issues List-Archive: https://lists.freebsd.org/archives/freebsd-gecko List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-gecko@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638875008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jUosWnKpcSn5TDWsX5cYw+YMXtIMjyHU0aCHTEXJsEg=; b=DiBphtkrK7d243T224xCeuqUsAM/A26cKWBvZ9hW/DQdN50tX20B9PiPRqBzceNn+JDgpU QadvMjRuL48W9Mebpe9ZqTJQqpyJUqcZeh+/u0LDfSJ0U6iNyPGK2UbE+1haWNoRHWF+ee O9iIsuctdpHsrLSFCjq7BqLQ63zce/PHY88lFiE0Kwp9uptjDw+wCga0NljuGQXaqj5qvn JK5Iwi86OVamNZXd0ffkJDLEBCh6eyX3CptpXO9cdUsJ8Cm67VXmdcPGUzvpHQRLkUAwOQ bYM6onrNVwPth373ma+54oC0VG72ncAx5TLerx9T7NwiIMYMqzjc0oc4cBIOgg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638875008; a=rsa-sha256; cv=none; b=i9Rv0gKLV15EfLp9rjov8b6HKHuK2Yf4BgQnaHRynUhyx7bHHdxgWaIwMSvogwvYH/cPd6 1+q8bYP55izUL7Rvz7Ya/Ozr3DWgbkJ1U3fMPc+N5m49TATRlj1bfmw1s+AAzB7LKpmLaj bmT8YJrBjupNcfnF+B+8n+RfRn/hlSdkjN/OblbPLLv1+QA2SAWHHOenOyKw38UFFTP+dO Q0U+GV/tQzHkhL0p7mL9BkWXn67DQKyB/INurs31XLv3NU3xyWZuYTQNQTq2L1ZppfibcQ DIeRPnVrRjMdg8ZAnHBxnrv1GbmCR7sQkCijUwuOrSw4mXpZlRRN7DpTcRjMBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260239 --- Comment #3 from Jan Beich --- (In reply to Michael Eriksson from comment #2) > 1. firefox-esr, and most likely also earlier versions of mainline firefox, > don't use dbus for opening URLs in running instances. This can be verifie= d by > testing without dbus running or by watching dbus-monitor. Before https://hg.mozilla.org/mozilla-central/rev/ef22d8cbf4ef one had to define MOZ_DBUS_REMOTE via environ(7) to use DBus on X11 to open a window i= n an existing Firefox instance. > 2. The firefox port doesn't make sure that the machine is ready for runni= ng > dbus (mainly by running "dbus-uuidgen --ensure"), and does not mention db= us in > the pkg-message. machine-id is mainly used by autolaunch and generic to all DBus consumers. = If you start session bus (as user after login) manually then neither "dbus-uui= dgen --ensure" nor "service dbus onestart" are required e.g., $ cat >>/etc/profile # WARNING: zsh doesn't read this file by default, so use /etc/zprofile instead # XDG_RUNTIME_DIR is preferred but usually requires pam_xdg or consolekit2 (pam_ck_connector or ck_launch_session) if [ -n "$XDG_RUNTIME_DIR" ]; then if ! pgrep -qf -U ${USER:-$(id -u)} dbus.\*--session; then dbus-daemon --session --fork --address=3Dunix:runtime=3Dyes 2>/de= v/null # Only necessary for some apps that fail to find default session = bus (e.g., Emacs, Chrome) # https://gitlab.freedesktop.org/dbus/dbus/-/commit/e3f117e7610b export DBUS_SESSION_BUS_ADDRESS=3Dunix:path=3D$XDG_RUNTIME_DIR/bus fi else eval $(dbus-launch --sh-syntax --exit-with-session 2>/dev/null) fi > 3. firefox can be built without the DBUS option, how will this work then? On X11 by snooping X atoms to find matching window then setting _MOZILLA_COMMANDLINE on that window. https://searchfox.org/mozilla-release/rev/dbc7c5ca1e5a/toolkit/components/r= emote/nsXRemoteClient.cpp#31-37 $ xwininfo -root -children | awk '/^[[:space:]]*0x/ { print $1 }' | xargs -= n1 xprop -id | fgrep _MOZILLA _MOZILLA_PROFILE(STRING) =3D "default-esr" _MOZILLA_PROGRAM(STRING) =3D "firefox" _MOZILLA_USER(STRING) =3D "you" _MOZILLA_VERSION(STRING) =3D "5.1" $ pkg install go git $ git clone https://github.com/siebenmann/ffox-remote $ cd ffox-remote $ go build $ ./ffox-remote -P default-esr https://lists.freebsd.org/ $ ./ffox-remote -P default-esr http://itisatrap.org/firefox/its-a-trap.html --=20 You are receiving this mail because: You are the assignee for the bug.=