Closed
Bug 1307832
Opened 8 years ago
Closed 7 years ago
Native Message Host fails to return a response when called in rapid succession.
Categories
(WebExtensions :: Untriaged, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: makeen, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 Steps to reproduce: In a for loop I make calls into the native message host (nmh). This creates promises that should resolve as soon as the nmh sends the response. Actual results: No response is ever returned. I printed out the messages (in my native code) and the messages were jammed together in the buffer. The reading of the messages was failing since it would hit unexpected bytes when trying to read. Also, the length of the incoming message was huge since the messages were jammed together. Expected results: Each message from the extension code should be sent individually to the native code. The native code should read and process that message only. Also, I confirmed that my code works as expected in Chrome using the native message host.
Updated•7 years ago
|
Component: Activity Streams: General → Untriaged
Component: Untriaged → WebExtensions: Untriaged
Product: Firefox → Toolkit
Comment 1•7 years ago
|
||
Can you please provide a testcase extension and app for this?
Comment 2•7 years ago
|
||
We have tests for this type of behavior, so marking as incomplete until we have a testcase. Please reopen if you can provide one.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•