Looked into it, this is an actual bug in the code! `connectNative` is synchronous so we sometimes don't have a port object when the message is sent. This is made worse by the fact that my bug made that code path asynchronous. Patch incoming.
Bug 1553354 Comment 9 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Looked into it, this is an actual bug in the code! `connectNative` is synchronous so we sometimes don't have a port object when the message is sent. This is made worse by the fact that my patch made that code path asynchronous. Patch incoming.