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

[Bug]: Native messaging does not work #1385

Closed
9 tasks done
stilgarwolf opened this issue Aug 23, 2024 · 11 comments
Closed
9 tasks done

[Bug]: Native messaging does not work #1385

stilgarwolf opened this issue Aug 23, 2024 · 11 comments
Labels
bug Something isn't working P3 Not a priority, but something that can be worked on.

Comments

@stilgarwolf
Copy link

Pre-Submission Checklist

  • I have checked the existing/closed issues to ensure this issue has not already been reported.
  • I am using the latest supported version of the browser.
  • I have tried disabling all browser extensions/add-ons to rule out interference from these.
  • I have tried clearing the browser cache and cookies.
  • I have checked with a new profile and the issue still occurs.
  • I have provided detailed step-by-step instructions on how to reproduce the issue.
  • I have included relevant screenshots or console outputs.
  • I have checked that this problem is not occurring in the latest version of Firefox ESR.
  • This issue is specific to this browser and does not occur in other browsers.

Bug Summary

Extensions using native messaging are not working.

Reproduction Steps

  1. _Install any extension using native messaging. (Try KeePassXC-Browser)

Expected Behavior

Extension must work, like in Firefox.

Actual Behavior

Extension does not work.

Screenshots

image

Browser Version

11.17.6 (64-bit)

Operating System

Debian unstable

Additional Context

I wrote a small extension and I found Floorp is using wrong directory when checking native messaging application json file:
"$HOME/.mozilla/native-messaging-hosts" instead of "$HOME/.floorp/native-messaging-hosts"

Workaround: For above example, moving "org.keepassxc.keepassxc_browser.json" file to "$HOME/.mozilla/native-messaging-hosts/" folder solves the issue.

@stilgarwolf stilgarwolf added the bug Something isn't working label Aug 23, 2024
@github-actions github-actions bot added P5 Developers do not respond, only patches are welcome unconfirmed Developer has not yet confirmed. labels Aug 23, 2024
@surapunoyousei
Copy link
Member

Hmm....

@surapunoyousei
Copy link
Member

It makes sense to fix this, so I'll investigate.

@creeper-0910 creeper-0910 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2024
@creeper-0910 creeper-0910 reopened this Aug 23, 2024
@creeper-0910
Copy link
Contributor

Sorry, I made a mistake.

@surapunoyousei surapunoyousei added P3 Not a priority, but something that can be worked on. and removed P5 Developers do not respond, only patches are welcome unconfirmed Developer has not yet confirmed. labels Aug 25, 2024
@surapunoyousei
Copy link
Member

Hey! Did you check latest version?

@stilgarwolf
Copy link
Author

stilgarwolf commented Aug 25, 2024

Hey! Did you check latest version?

Yes, 11.17.7 (64-bit), Debian SID
Still not working.

@noizo
Copy link

noizo commented Aug 27, 2024

I use Enpass password manager, which is 99% also uses native messaging.
Everything works fine in Floorp.

@surapunoyousei
Copy link
Member

image

@surapunoyousei
Copy link
Member

The latest version already seems to work.

Try the PPA version of Floorp. I'm assuming this issue is complete since we are getting a working environment again.

@stilgarwolf
Copy link
Author

stilgarwolf commented Aug 28, 2024

No, it's not working.

(I am already using Floorp from PPA)

KeePassXC puts "org.keepassxc.keepassxc_browser.json" file in .mozilla folder when enables Firefox browser.
Moving the file to .floorp makes the extension unusable. Re-enabling Firefox in KeepassXC desktop app recreates json file in .mozilla folder.

The extension works with Floorp, but using .mozilla folder.

With LibreWolf, KeePassXC correctly uses .librewolf folder, so it seems Floorp is reporting wrong location of "native-messaging-hosts" folder.

@surapunoyousei
Copy link
Member

surapunoyousei commented Aug 28, 2024

Sorry, but Floorp intentionally uses the .mozilla folder.

This is because native applications place files to communicate with extensions in the .mozilla folder.

Using (by user) the .floorp folder would be confusing and difficult to use for users who are not familiar with difficult concepts such as hidden folders!

@stilgarwolf
Copy link
Author

Using both .floorp and .mozilla folders would be better, I think.
And, at least, write a notice about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P3 Not a priority, but something that can be worked on.
Projects
None yet
Development

No branches or pull requests

4 participants