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

native messaging example: port disconnects without an error #560

Open
epragalakis opened this issue May 4, 2024 · 3 comments · May be fixed by #564
Open

native messaging example: port disconnects without an error #560

epragalakis opened this issue May 4, 2024 · 3 comments · May be fixed by #564
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior. effort: small This task is a small effort. example New or updated example p2 We want to address this but may have other higher priority items.

Comments

@epragalakis
Copy link

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.

@epragalakis epragalakis added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label May 4, 2024
Copy link

github-actions bot commented May 4, 2024

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.

@github-actions github-actions bot added the idle Issues and pull requests with no activity for three months. label Jun 3, 2024
@lmmx
Copy link

lmmx commented Jul 10, 2024

Came here to raise the same issue, this native messaging ping pong hello world demo is broken on Linux for me 👎

@github-actions github-actions bot removed the idle Issues and pull requests with no activity for three months. label Jul 11, 2024
@sirthias
Copy link

Broken on macOS Sonoma 14.5 and Firefox 128.0 as well.
After the browser.runtime.connectNative(...) call the port is immediately disconnected without an error.
The app script is not even started once.

@dotproto dotproto self-assigned this Jul 13, 2024
@dotproto dotproto added bug Indicates an unexpected problem or unintended behavior. effort: small This task is a small effort. p2 We want to address this but may have other higher priority items. example New or updated example and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jul 13, 2024
dotproto added a commit to dotproto/webextensions-examples that referenced this issue Jul 13, 2024
dotproto added a commit to dotproto/webextensions-examples that referenced this issue Jul 13, 2024
dotproto added a commit to dotproto/webextensions-examples that referenced this issue Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior. effort: small This task is a small effort. example New or updated example p2 We want to address this but may have other higher priority items.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants