browserpass-native: Error: Attempt to postMessage on disconnected port

General information

  • Operating system + version: Fedora 29
  • Browser + version: 66.0.2 (64-bit) (from package manager)
  • Information about the host app:
    • How did you install it?: downloaded a pre-built binary
    • If installed an official release, put a version ($ browserpass --version): 3.0.6
    • If built from sources, put a commit id ($ git describe --always):
  • Information about the browser extension:
    • How did you install it?: make BIN=browserpass-linux64 configure && sudo make BIN=browserpass-linux64 install && cd /usr/lib/browserpass/ && sudo make hosts-firefox
    • Browserpass extension version as reported by your browser: 3.0.10

Exact steps to reproduce the problem

  1. Restart firefox
  2. Click the extension icon

What should happen?

See a list of passwords

What happened instead?

Got the error


Is the binary meant to be running? I see no browserpass in the process list

$ cat /usr/lib/browserpass/hosts/firefox/com.github.browserpass.native.json
{
    "name": "com.github.browserpass.native",
    "description": "Browserpass native component for the Firefox extension",
    "path": "/usr/bin/browserpass-linux64",
    "type": "stdio",
    "allowed_extensions": ["browserpass@maximbaz.com"]
}

$ stat /usr/bin/browserpass-linux64
  File: /usr/bin/browserpass-linux64
  Size: 4305673   	Blocks: 8416       IO Block: 4096   regular file
Device: fd01h/64769d	Inode: 1572939     Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Context: system_u:object_r:bin_t:s0
Access: 2019-04-15 08:59:40.529930053 +0100
Modify: 2019-04-15 08:58:12.118382801 +0100
Change: 2019-04-15 08:58:12.123382832 +0100
 Birth: -

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 58 (23 by maintainers)

Most upvoted comments

Closing as it seems everyone has got it working 🙂

In fact, I’ve just gone through every distro package, seems we are already good everywhere we can:

  • Arch and Debian: provide dedicated browserpass-firefox / browserpass-webext
  • NixOS and Gentoo: bundle some hosts json files into browserpass directly (I think NixOS bundles all browsers, Gentoo only some)
  • macOS homebrew formula has a technical limitation, they are sandboxed and therefore cannot implement this.

So the problem is mostly due to the absence of distro packages for Fedora / Void / Manjaro distros (and others, not mentioned in this thread).

// If someone is able to create a packages for other distros, please consider doing so, this is very valuable work!

It’s worth noting that the vast majority of people who had issues are on OS that don’t provide browserpass-firefox at all, and if they did, we wouldn’t be discussing this issue 🙂 I don’t have control over how other distros choose to provide their browserpass package, but our Makefile supports that, all they have to do is to run make hosts-* during the packaging stage and it will include all possible json files 🙂

But I agree with your sentiment and reasoning, therefore my recommendation to package maintainers is: if you can, provide browserpass-firefox like Arch does, if for whatever reason it is problematic, do consider including all hosts json files directly in the browserpass package.

On Arch, that does provide browserpass-firefox package, so far there was only a single person who didn’t immediately realize that such package exists, and they realized this anyway before we had a chance to respond in this thread, so I think it’s quite discoverable.