-
Notifications
You must be signed in to change notification settings - Fork 236
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
firefox extensions using "native-messaging-hosts": cant get it to work #453
Comments
You have to enable URL protocol handlers: https://github.com/pyllyukko/user.js/blob/master/user.js#L333 See: #295 |
Still cant' get it to work.
You wrote,
I suppose by "enable" you mean, changing from "false" to "true" those "handler.external" lines ? Am I correct ? Because on the "handler.expose" lines, the defaults are OK right ? So, regarding the "handler.external" lines . So conclusion. |
@m040601 Hey,
|
As discussed here, persepolisdm/Persepolis-WebExtension#20 So conclusion, this option may affect other Firefox extensions (like download managers) Thanks for your attention to this issue. |
Hi, first off all thank you for you work in this project.
I'm on Arch Linux Firefox 66.
I'm using the default template with every possible hardening measure enforced.
I'm still learning, so please apologize if after reading the docs/issues, I missed something apparently "obvious".
I'm trying to get this (great) extension to work, https://github.com/persepolisdm/Persepolis-WebExtension . Persepolis itself, https://github.com/persepolisdm/persepolis,
is just a great gui to the ariac download manager.
So this all makes a great open source "download manager/interceptor" solution for firefox.
The installation gave no error messages, everything seems to be there menus buttons etc,
The extension itself wrote a file to
$HOME/.mozilla/native-messaging-hosts/
called, com.persepolis.pdmchromewrapper.json, with this content:
{"name": "com.persepolis.pdmchromewrapper", "type": "stdio", "path": "/home/REDACTED/.config/persepolis_download_manager/persepolis_run_shell", "description": "Integrate Persepolis with firefox using WebExtensions", "allowed_extensions": ["[email protected]", "[email protected]"]}
Except it doesn work. Nothing happens. No error message nothing.
When I try to use it, that is right clicking:
So I went slowly, step by step trying to pinpoint the problem.
First suspicion, was some other addon or ublock addblocker.
So I started with a fresh Firefox profile. With nothing customized. Zero addons, no custom user.js. And It works.I then, added step by step all my usual addons, including ublock, heavy javascript blockers etc. It works.
I must also say, that I use other extensions that make use of this "native-messaging" thing WITH user.js and without any problem Example, the great browserpass, https://github.com/browserpass/browserpass-extension
So then i then turned into my user.js file.
I admit, my techical knowledge is limited, but, I tryied to search for some setting or hardening option responsible for this. Searched for "native" and similar things found nothing.
Do you have any idea what could be causing this ?
Any tips or tools I could use to debug this ?
This issue concerns a particular extension.
But I would also like to ask you, if possible to expand on the documentation on this issue. That is, the possible issues/gotchas/limitations of using user.js with this kind of "native-messaging" extensions/functionality.
Thanks in advance.
The text was updated successfully, but these errors were encountered: