pixiebrix / webext-messenger

Browser Extension component messaging framework
MIT License
12 stars 2 forks source link

If a tab is closed before the method responds, the Messenger throws "Could not establish connection" #67

Open fregante opened 2 years ago

fregante commented 2 years ago

Context:

Refer to the steps in https://github.com/pixiebrix/pixiebrix-extension/issues/2902#issuecomment-1062658248

Possible solution:

Drawbacks:

fregante commented 2 years ago

This problem is temporarily fixed by https://github.com/pixiebrix/webext-messenger/commit/0d20b5a073b95e2ff21d1add641c7c9c166e77ce but if this issue is resolved:

before this one:

the problem will return.

I think the best way to handle this is to drop the polyfill so we don't have to depend on what Mozilla’s schedule and decisions.

fregante commented 2 years ago

Reopening because of my previous comment