question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KeePassXC-Browser chrome extension doesn't work in Brave on MacOS

See original GitHub issue

Description

KeePassXC-Browser chrome extension doesn’t work in Brave or Brave-dev on MacOS. I have confirmed the extension works in Chrome.

Steps to Reproduce

  1. Install KeePassXC-Browser extension
  2. Enable browser integration for brave in KeePassXC (creates Brave-Browser/NativeMessagingHosts/org.keepassxc.keepassxc_browser.json - I copied manually for Brave-Browser-Dev)
  3. Try to connect to KeePassXC through the extension

Actual result:

Key exchange was not successful.

Expected result:

Reproduces how often:

Consistant

Brave version (brave://version info)

Version/Channel Information:

Brave 0.68.86 Chromium: 75.0.3770.100 (Official Build) dev(64-bit)
Revision cd0b15c8b6a4e70c44e27f35c37a4029bad3e3b0-refs/branch-heads/3770@{#1033}
OS Mac OS X
  • Can you reproduce this issue with the current release? yes
  • Can you reproduce this issue with the beta channel? didnt try
  • Can you reproduce this issue with the dev channel? yes
  • Can you reproduce this issue with the nightly channel? didnt try

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? n/a
  • Does the issue resolve itself when disabling Brave Rewards? n/a
  • Is the issue reproducible on the latest version of Chrome? No, extension works as expected on latest Chrome

Miscellaneous Information:

See related report on keepassxc-browser github: https://github.com/keepassxreboot/keepassxc-browser/issues/541

debug info:

Connecting to native messaging host org.keepassxc.keepassxc_browser keepass.js:969 Failed to connect: Specified native messaging host not found. keepass.js:1192 Objectmessage: (...)get message: ƒ ()arguments: (...)caller: (...)length: 0name: ""__proto__: ƒ ()apply: ƒ apply()arguments: (...)bind: ƒ bind()call: ƒ call()caller: (...)constructor: ƒ Function()length: 0name: ""toString: ƒ toString()Symbol(Symbol.hasInstance): ƒ [Symbol.hasInstance]()get arguments: ƒ ()set arguments: ƒ ()get caller: ƒ ()set caller: ƒ ()__proto__: Object[[FunctionLocation]]: <unknown>[[Scopes]]: Scopes[0]No properties[[Scopes]]: Scopes[0]No properties__proto__: Object browser-polyfill.min.js:1 Returning a Promise is the preferred way to send a reply from an onMessage/onMessageExternal listener, as the sendResponse will be removed from the specs (See https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessage) Error at B (chrome-extension://oboonakemofpalcgghocfoadofidjkkk/browser-polyfill.min.js:1:8152) at chrome-extension://oboonakemofpalcgghocfoadofidjkkk/background/event.js:108:9 B @ browser-polyfill.min.js:1 keepass.js:1078 Error 5: Cannot connect to KeePassXC. Check that browser integration is enabled in KeePassXC settings. keepass.js:993 Connecting to native messaging host org.keepassxc.keepassxc_browser keepass.js:969 Failed to connect: Specified native messaging host not found. keepass.js:1192 {}message: (...)get message: ƒ ()arguments: (...)caller: (...)length: 0name: ""__proto__: ƒ ()apply: ƒ apply()arguments: (...)bind: ƒ bind()call: ƒ call()caller: (...)constructor: ƒ Function()length: 0name: ""toString: ƒ toString()Symbol(Symbol.hasInstance): ƒ [Symbol.hasInstance]()get arguments: ƒ ()set arguments: ƒ ()get caller: ƒ ()set caller: ƒ ()__proto__: Object[[FunctionLocation]]: <unknown>[[Scopes]]: Scopes[0][[Scopes]]: Scopes[0]No properties__proto__: constructor: ƒ ()__proto__: Object keepass.js:1078 Error 9: Key exchange was not successful.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:6
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
HarukaMacommented, Oct 12, 2019

According to https://github.com/browserpass/browserpass-native/issues/43#issuecomment-481794094, this is caused by Brave browser still looking for native messaging hosts definitions from ~/Library/Application Support/Google/Chrome/NativeMessagingHosts, not ~/Library/Application Support/BraveSoftware/Brave-Browser{,-Dev,...}/NativeMessagingHosts.

I think this is a completely unexpected behavior and a bug of Brave browser.

6reactions
haloid2010commented, Jan 30, 2020

I had the same issue.

Brave Version 1.2.43 Chromium: 79.0.3945.130 (Official Build) (64-bit) KeePassXC-Browser Version: 1.5.4 KeePassXC Version: 2.5.3

Like @jobeleau2, enabling Google Chrome in KeePassXC browser integration settings fixed the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Within Brave on MacOS, I can't have KeePassXC Extension ...
When pressing on the "Connect" button, nothing happen. Chromium & Brave browser integration are enabled in KeePassXC. Possible Solution. Steps ...
Read more >
Getting Started Guide - KeePassXC
The KeePassXC-Browser extension is available on the following web browsers: Google Chrome, Vivaldi, and Brave. Mozilla Firefox and Tor-Browser.
Read more >
KeePassXC Extension : r/brave_browser - Reddit
Does anyone know how to work KeePassXC Extension to work with Brave? I tried troubleshooting the extension by going into ...
Read more >
[Resolved] KeepassXC 2.4.1-2.5.0 + ... - Snapcraft forum
Brave KeepassXC-browser extension reports no databases connected. This works fine in Google Chrome. What I do notice that I would like ...
Read more >
KeePassXC-Browser does not connect to browsers using ...
7. Everything was working normally and suddenly after new installation of Distro Deepin V20.2 it stopped connecting the extension with the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found