mdn / webextensions-examples

Example Firefox add-ons created using the WebExtensions API
https://developer.mozilla.org/en-US/Add-ons/WebExtensions
Mozilla Public License 2.0
4.01k stars 2.6k forks source link

native messaging example: port disconnects without an error #560

Open epragalakis opened 2 months ago

epragalakis commented 2 months ago

What information was incorrect, unhelpful, or incomplete?

the code example does not run on two different OS' and the documentation does not explain why.

What did you expect to see?

more complete and descriptive errors

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

I'm trying to run this web-extension example: https://github.com/mdn/webextensions-examples/tree/main/native-messaging on Linux (latest firefox) and macOs (latest firefox dev) and on calling browser.runtime.connectNative('ping_pong'); I get a disconnect event with a null error object.

github-actions[bot] commented 2 months ago

It looks like this is your first issue. Welcome! 👋 One of the project maintainers will be with you as soon as possible. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.