Closed
Bug 1792094
Opened 6 months ago
Closed 6 months ago
"Attempt to postMessage on disconnected port" when runtime.sendNativeMessage fails to
Categories
(WebExtensions :: General, defect)
WebExtensions
General
Tracking
(firefox107 fixed)
RESOLVED
FIXED
107 Branch
Tracking | Status | |
---|---|---|
firefox107 | --- | fixed |
People
(Reporter: robwu, Assigned: robwu)
References
Details
(Whiteboard: [addons-jira])
Attachments
(1 file)
Currently, when runtime.sendNativeMessage
fails to locate a fitting native messaging host, it emits the error "Attempt to postMessage on disconnected port". This error does not make sense, and does not match the documentation at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging#troubleshooting
The error happens because of an implementation bug: the actual error is hidden, because the implementation attempts to send a message despite not having found a native messaging host, at https://searchfox.org/mozilla-central/rev/534b95e2e21caaea3e5932fd5a99e4961c942f89/toolkit/components/extensions/NativeMessaging.jsm#342-355
Updated•6 months ago
|
Assignee | ||
Comment 1•6 months ago
|
||
Pushed by rob@robwu.nl: https://hg.mozilla.org/integration/autoland/rev/4ba6c5182713 Improve accuracy of error reporting by sendNativeMessage r=rpl
Comment 3•6 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
status-firefox107:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•