mullvad-browser icon indicating copy to clipboard operation
mullvad-browser copied to clipboard

KeePassXC Browser Extension Not Working with Mullvad Browser on Fedora 41

Open mohammadRezaeian opened this issue 1 year ago • 10 comments

Hi, I installed the Mullvad browser from the official Mullvad repository (mullvad.net).

I followed all the steps mentioned in previous issues for setting up the KeePassXC browser extension, but the extension is still not working with the Mullvad browser on Fedora 41.

I recall reading in a previous issue that someone resolved this issue by using the KeePassXC package from the Arch repository and enabling Firefox support in KeePassXC. However, even after trying this approach, it still doesn't work on Fedora 41.

Could you please confirm if additional steps are required, or if this is a compatibility issue with Fedora 41?

output debug addons:

KeePassXC-Browser: Connecting to native messaging host org.keepassxc.keepassxc_browser client.js:383:13 [Error ] KeePassXC-Browser - Failed to connect: Unknown error global.js:147:13 [Error init.js:10] KeePassXC-Browser - changePublicKeys failed: TypeError: keepassClient.nativePort is null global.js:147:13 [Error keepass.js:256] KeePassXC-Browser - 5: Cannot connect to KeePassXC. Check that browser integration is enabled in KeePassXC settings. global.js:147:13 [Error client.js:402] KeePassXC-Browser - No content script available for this tab. global.js:147:13 [Error keepass.js:926] KeePassXC-Browser - No content script available for this tab

thanks.

mohammadRezaeian avatar Nov 28 '24 09:11 mohammadRezaeian

The native-messaging-hosts thing KeePassXC is looking for doesn't seem to exist for Mullvad. Native Messaging might be disabled entirely, which would make the KeePassXC extension unable to work at all.

I also would like to be able to use the leading secure open source password manager with Mullvad... Much safer than having your credentials cross your clipboard every time or screwing around with auto-type.

ExperimentalCyborg avatar Mar 02 '25 08:03 ExperimentalCyborg

I managed to fix that on Fedora 41 KDE by enabling Browser Integration on KeepassXC, then checking Firefox, going to ~/.mozilla, copied the folder native-messaging-hosts (with the .json file inside) to /usr/lib/mozilla and restarted Mullvad Browser.

Currently working fine on KeepassXC version 2.7.9 and Mullvad Browser version 14.0.7 both installed natively through DNF.

canon250 avatar Mar 05 '25 23:03 canon250

Hi, thank you for the work it works fine. But sorry, could you please tell me why it works with that setup, but when we copied it to the ~/.Mullvad-browser, it doesn't work?

mohammadRezaeian avatar Mar 12 '25 06:03 mohammadRezaeian

Hey @mohammadRezaeian,

To be honest, I’m not involved with the development team, nor am I a developer myself. I figured this out through trial and error and just wanted to share my solution. I’m sorry I can’t provide an accurate answer, but perhaps someone from the KeePassXC development team can shed some light on this?

canon250 avatar Mar 12 '25 19:03 canon250

Hey, Just ran into this issue myself today and I noticed this directory: ~/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts, could this be what we're looking for?

moodyknurd avatar Mar 26 '25 22:03 moodyknurd

Hey, Just ran into this issue myself today and I noticed this directory: ~/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts, could this be what we're looking for?

I'm not sure what are you referring to specifically, my guess is that you enabled on KeepassXC the toggle for Tor Browser and that file gets created there.

Do you still have the issue with the extension? If you follow my previous instructions it should work flawlessly.

canon250 avatar Mar 26 '25 22:03 canon250

Hey, Just ran into this issue myself today and I noticed this directory: ~/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts, could this be what we're looking for?

I'm not sure what are you referring to specifically, my guess is that you enabled on KeepassXC the toggle for Tor Browser and that file gets created there.

Do you still have the issue with the extension? If you follow my previous instructions it should work flawlessly.

Right, sorry for the lack of clarity, your instructions did resolve my issue, thanks! I was just wondering out loud about the purpose of that directory, is all.

moodyknurd avatar Mar 26 '25 23:03 moodyknurd

Hey, Just ran into this issue myself today and I noticed this directory: ~/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts, could this be what we're looking for?

I'm not sure what are you referring to specifically, my guess is that you enabled on KeepassXC the toggle for Tor Browser and that file gets created there. Do you still have the issue with the extension? If you follow my previous instructions it should work flawlessly.

Right, sorry for the lack of clarity, your instructions did resolve my issue, thanks! I was just wondering out loud about the purpose of that directory, is all.

Nice! I'm glad to hear (read) that. I hope the issue gets fixed though

canon250 avatar Mar 26 '25 23:03 canon250

Hi, thank you for the work it works fine. But sorry, could you please tell me why it works with that setup, but when we copied it to the ~/.Mullvad-browser, it doesn't work?

I created the directory ~/.mullvad-browser/.mozilla/native-messaging-hosts and copied ~/.mozilla/native-messaging-hosts/org.keepassxc.keepassxc_browser.json there. Now, KeePassXC works well.

In KeePassXC, set the config location to ~/.mullvad-browser/.mozilla/native-messaging-hosts, which should also work.

I'm using Debian 12 with KDE Plasma (Wayland). I installed Mullvad Browser from their repository.

Hope this can be of some help. :)

linktonull avatar May 13 '25 18:05 linktonull

Hi all, same issue with Mullvad on Win 11 Pro is there a simple way to get this to work.

chris02000 avatar Oct 09 '25 14:10 chris02000