-
Notifications
You must be signed in to change notification settings - Fork 0
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
nm_nodejs.js does not work on linux with firefox #3
Comments
First make sure the file is marked executable. Then remove this
If you have Test on Chromium or Chrome to make sure the host works there. If that doesn't work try using this https://github.com/guest271314/NativeMessagingHosts/blob/main/nm_host.js, which works using |
What versions of Firefox and Node.js are you using? Can you kindly create a gist including all of the code you are using? BTW, I updated @Josh-Cena One of your team mates over in MDN world contacted me by email, we exchanged idea, and they saw fit to ban me from MDN, so if we need to coordinate to publish working code - if we conclude it's the code and not something else that's not working - kindly visit this issue so we have working code published on MDN. Thanks. |
node 20.17
it worked!! (although I dont understand why and also the code looks like its doing way more than using the stdin and stdout as the docs mention) I will post a follow up message with more debug info on the MDN example when I get some time in the coming days |
Cannot reproduce. Works for me on Linux 5.15.0-43-generic x86_64 x86_64 x86_64 GNU/Linux.
From App side.
Make sure the file is executable.
Firefox Nightly 133.0a1 (2024-10-27) (64-bit). Code run in DevTools on the Wex extension page
Message from host
Firefox Nightly screenshot Task Manager screen shot |
@Josh-Cena Cannot reproduce the code on MDN not working. See above. Need more details. |
I know nothing about this area so sorry I can't provide any help in debugging. @guest271314 fully appreciate your effort here. I'm sorry to hear about your situation with MDN, but if someone else has made that decision it's beyond my capability to revert it. I'm happy to credit you on any fix we may reach for the MDN example, though. |
@Josh-Cena I wasn't asking for anything re MDN. I'm just notifying you I'm banned from over there. Any help I can provide from here for Native Messaging that helps the documentation and working code examples I will. This script, |
@epragalakis Re
|
@epragalakis The reason that |
@Josh-Cena AN independent Native Messaging hacker verified this https://github.com/guest271314/native-messaging-nodejs/blob/main/nm_nodejs.js works on Apple devices, using Would you mind updating the example on MDN to use the above code? |
@Josh-Cena Re mdn/content#36626 (comment)
I don't understand. Don't you want code that works on Linux, Microsoft products, and Apple products on MDN. The PR changes one part of one file. What's the blocker? |
I posted a similar issue on: mdn/content#36513
although the examples differ from each other.
If this is under active maintenance and you are interested in it I can post more debug info (and also a walthrough of my attempts) later.
The text was updated successfully, but these errors were encountered: