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

Support Firefox snap package #112

Closed
wmortada opened this issue Nov 4, 2021 · 10 comments
Closed

Support Firefox snap package #112

wmortada opened this issue Nov 4, 2021 · 10 comments

Comments

@wmortada
Copy link

wmortada commented Nov 4, 2021

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):
  • 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

  1. Click on the browserpass icon in Firefox

  2. 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.

@maximbaz
Copy link
Member

maximbaz commented Nov 4, 2021

I agree that the issue is indeed very similar, hopefully solving one would solve the other 🙂

@mrtndwrd
Copy link

mrtndwrd commented Aug 3, 2022

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.

@maximbaz
Copy link
Member

maximbaz commented Aug 3, 2022

Please see the linked Chromium thread, you'll find some info about what people tried and what is missing to get this issue solved.

@mrtndwrd
Copy link

mrtndwrd commented Aug 3, 2022

I actually remember that thread from 2019 😅 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.

@mrtndwrd
Copy link

mrtndwrd commented Aug 3, 2022

For now I reverted to deb-style Firefox by following these instructions. I can confirm that browserpass works again :)

@tmerten
Copy link

tmerten commented Aug 26, 2022

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.

@tmerten
Copy link

tmerten commented Aug 27, 2022

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:

browserpass-snap

@adamschoenemann
Copy link

adamschoenemann commented Oct 13, 2022

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

@maximbaz
Copy link
Member

maximbaz commented Mar 4, 2023

Do I understand correctly that this issue is now solved and can be closed? 🎉

@wmortada
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants