Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

librewolf: cannot open new URLs into running instance #4891

Closed
Lonniebiz opened this issue Feb 2, 2022 · 8 comments · Fixed by #4897
Closed

librewolf: cannot open new URLs into running instance #4891

Lonniebiz opened this issue Feb 2, 2022 · 8 comments · Fixed by #4897

Comments

@Lonniebiz
Copy link

Lonniebiz commented Feb 2, 2022

firejail version 0.9.64.4
Debian 11
LibreWolf v96.0.3-2

This issue is similar to one reported for Firefox.

A list of LibreWolf AppImages can be found here. Here's the command I'm using to run LibreWolf:
firejail --appimage --profile=/etc/firejail/librewolf.profile ~/AppImages/LibreWolf.x86_64.AppImage

The problem occurs after first launch, when I'm trying to open additional web pages. For example, let's say LibreWolf is already running, and I want to open Ebay from the command line:
firejail --appimage --profile=/etc/firejail/librewolf.profile ~/AppImages/LibreWolf.x86_64.AppImage https://www.ebay.com

Instead of opening Ebay into a new tab, I get this error:
LW

In a prior AppImage of LibreWolf, version 96.0.2-1, I was able to get past this issue using a custom profile:

~/.config/firejail/librewolf.profile

# Firejail profile for Librewolf
# Description: Firefox fork based on privacy
# This file is overwritten after every install/update
# Persistent local customizations
include librewolf.local
# Persistent global definitions
include globals.local

noblacklist ${HOME}/.cache/librewolf
noblacklist ${HOME}/.librewolf

mkdir ${HOME}/.cache/librewolf
mkdir ${HOME}/.librewolf
whitelist ${HOME}/.cache/librewolf
whitelist ${HOME}/.librewolf

whitelist /usr/share/doc
whitelist /usr/share/gtk-doc/html
whitelist /usr/share/mozilla
whitelist /usr/share/webext
include whitelist-usr-share-common.inc

dbus-user filter
dbus-user.own org.mozilla.librewolf.*
ignore dbus-user none

# Redirect
include firefox-common.profile

Then, I'd launch v96.0.2-1 using the custom profile above:
firejail --appimage --profile=~/.config/firejail/librewolf.profile ~/AppImages/LibreWolf.x86_64.AppImage

Later, when I'd launch a URL (with LibreWolf already running), it would open that URL in a new tab with the following command:
firejail --appimage --profile=~/.config/firejail/librewolf.profile ~/AppImages/LibreWolf.x86_64.AppImage https://www.ebay.com

However, in LibreWolf version v96.0.3-2, the custom profile above doesn't succeed in launching URLs into new tabs.

Hopefully, the default LibreWolf profile can be modified to prevent this issue. In the meantime, I'd appreciate any suggestions of how I might modify the custom profile above to prevent the issue. Again, the custom profile above worked in v96.0.2-1, but doesn't prevent the issue in v96.0.3-2 .

@Lonniebiz
Copy link
Author

Lonniebiz commented Feb 2, 2022

I've also brought this issue to the attention of the LibreWolf AppImage maintainers:
https://gitlab.com/librewolf-community/browser/appimage/-/issues/32

I don't think they're at fault for this issue, but I was hoping that they may be able to offer insight that leads to us making a fully functioning profile for LibreWolf v96.0.3-2.

@rusty-snake
Copy link
Collaborator

rusty-snake commented Feb 2, 2022

dbus-user.own io.gitlab.librewolf.*

Was org.mozilla.librewolf.* ever used? Yes https://gitlab.com/librewolf-community/browser/flatpak/-/commit/f20e869fa4e4fdd9471e53338b4b6dead04509b9

@Lonniebiz
Copy link
Author

Lonniebiz commented Feb 2, 2022

In the custom profile, shown above. I changed the following line:
dbus-user.own org.mozilla.librewolf.*
to
dbus-user.own io.gitlab.librewolf.*

After closing LibreWolf, and relaunching LibreWolf v96.0.3-2 (with this modified custom profile), I again tried to open Ebay into a new tab with the following command:
firejail --appimage --profile=~/.config/firejail/librewolf.profile ~/AppImages/LibreWolf.x86_64.AppImage https://www.ebay.com

Instead of launching Ebay into a new tab, the same error occurred:
LW
@rusty-snake

@Lonniebiz
Copy link
Author

Lonniebiz commented Jul 1, 2022

firejail version: 0.9.64.4
Debian 11
LibreWolf (AppImage): v101.0.1-1

Last night I updated Debian 11 and noticed that the Firejail Profiles package got updated.

Today, this issue 4891 is happening again. It seems that the firejail profile has been updated in a manner that has forgotten about this issue.

Please reopen this issue until it gets fixed again.

@rusty-snake
Copy link
Collaborator

As I said in #5227 this is fixed!

If you run an old firejail version without the fix, cherry-pick it by hand into a .profile (in /etc/firejail) and update the packages, this is expect and not your bug.

If nobody can show that this is still an issue with firejail 0.9.68 I'm going to close this again (tomorrow).

@kmk3
Copy link
Collaborator

kmk3 commented Jul 1, 2022

@Lonniebiz commented on Jul 1:

firejail version: 0.9.64.4 Debian 11 LibreWolf (AppImage):
v101.0.1-1

Last night I updated Debian 11 and noticed that the Firejail Profiles package
got updated.

Today, this issue 4891 is happening again. It seems that the firejail profile
has been updated in a manner that has forgotten about this issue.

Please reopen this issue until it gets fixed again.

Again, please follow the bug report template. The information in the
template might be needed for debugging, so if that is missing, your issue is
more likely to be ignored.

Also, checking the latest profile version is part of the checklist:

  • The profile (and redirect profile if exists) hasn't already been fixed upstream.

If the latest version indeed solves the issue (as @rusty-snake mentioned), just
going through the checklist could have led you directly to the fix and avoided
reopening this issue.

Lastly, aside from the template, is LibreWolf running under wayland or Xorg?

@rusty-snake
Copy link
Collaborator

#5227 (comment)

@kmk3
Copy link
Collaborator

kmk3 commented Jul 1, 2022

@rusty-snake commented on Jul 1:

#5227 (comment)

For reference:

@Lonniebiz commented on Jul 1:

In Debian 11, I opened this file: /etc/apt/sources.list

And added this line to it: deb http://deb.debian.org/debian
bullseye-backports main

Then, I upgraded filejail to version 0.9.70 : sudo apt update ; sudo apt
install firejail/bullseye-backports firejail-profiles/bullseye-backports

After, this I relaunched the LibreWolf AppImage
using firejail and now the issue is resolved; I can launch additional pages
in new tabs.

@kmk3 kmk3 changed the title LibreWolf - Can't launch additional WebPages into New Tabs via Firejail Command librewolf: cannot open new URLs into running instance Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants