browserpass-native
browserpass-native copied to clipboard
Support Firefox snap package
General information
- Operating system + version: Ubuntu 21.10
- Browser + version: Firefox 94.01 snap for Ubuntu canonical-002 - 1.0
- Information about the host app:
- How did you install it? Installed via a package manager (
apt install webext-browserpass
) - If installed an official release, put a version (
$ browserpass --version
): 3.7.2-1 - If built from sources, put a commit id (
$ git describe --always
):
- How did you install it? Installed via a package manager (
- Information about the browser extension:
- How did you install it? Installed via webstore
- Browserpass extension version as reported by your browser: 3.7.2
If you are getting an error immediately after opening popup, have you followed the Configure browsers documentation section?
I think this is the same issue as #82. Ubuntu is now supplying Firefox as a snap package and browserpass no longer works.
Exact steps to reproduce the problem
-
Click on the browserpass icon in Firefox
-
See an error message: "Error: Error: Attempt to postMessage on disconnected port"
What should happen?
Browserpass should work with Firefox.
What happened instead?
Browserpass doesn't work with the snap version of Firefox.
I agree that the issue is indeed very similar, hopefully solving one would solve the other 🙂
The snap package is now the default in Ubuntu 22.04 so it just started failing for me after upgrading my Ubuntu to the newest LTS. Please let me know if I can do anything to provide useful information.
Please see the linked Chromium thread, you'll find some info about what people tried and what is missing to get this issue solved.
I actually remember that thread from 2019 :sweat_smile: But to be honest I don't know how to help by looking at that issue. I'm neither a Go nor a Snap developer, so the best I can do right now is provide logs and that kind of information and try already suggested workarounds.
For now I reverted to deb-style Firefox by following these instructions. I can confirm that browserpass works again :)
I did not try this myself yet but for the curious, there is a call for testing with respect to native messaging support in the Firefox snap.
And now I did test it. Running 22.04.1, default Gnome/Wayland:
apt remove firefox
mv ~/.mozilla some-backup # might not be necessary
# remove all the apt overriding
rm /etc/apt/apt.conf.d/51unattended-upgrades-firefox
rm /etc/apt/sources.list.d/mozillateam-ubuntu-ppa-jammy.list
sudo rm /etc/apt/preferences.d/mozilla-firefox
# install beta snap and add native messaging app
snap install firefox --beta
cd /usr/lib/browserpass && make hosts-firefox-user
After starting and installing browserpass from firefox addons I had to allow calling the native messaging app once. And here we go:
After installing snap firefox beta, if you don't get a popup dialog asking for native messaging permissions for browserpass, run this command after closing firefox:
flatpak permission-set webextensions com.github.browserpass.native snap.firefox yes
Do I understand correctly that this issue is now solved and can be closed? :tada:
Sorry for the delay in replying. Yes, this is working for me now. Thanks!
- Ubuntu 22.04.3
- Firefox 119.0
- Browserpass 3.8.0