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

Listener indicated async response by returning true, but channel was closed #3560

Closed
twschiller opened this issue Jun 3, 2022 · 5 comments
Closed
Labels
bug Something isn't working runtime
Milestone

Comments

@twschiller
Copy link
Contributor

twschiller commented Jun 3, 2022

Context

Discussion

@twschiller twschiller added bug Something isn't working runtime labels Jun 3, 2022
@twschiller twschiller added this to the 1.6.5 milestone Jun 3, 2022
@fregante
Copy link
Collaborator

fregante commented Jun 5, 2022

Copying this message from Slack:

Could that be simply a closed tab? The message is basically saying:

  • the onMessage listener didn't resolve before the tab was closed

It should be replicable with a raw:

a: browser.tabs.sendMessage(1, 'msg')
b: browser.runtime.onMessage
  .addListener(() => new Promise(console.warn))

This will never resolve, so if you close the context B, you'll get that error on A

Confirmed:

Screen Shot

@twschiller
Copy link
Contributor Author

Moving to 1.7.1. With the 1.7.0 release, will confirm if #3510 solved the problem or not

@twschiller twschiller modified the milestones: 1.7.0, 1.7.1 Jun 15, 2022
@twschiller twschiller modified the milestones: 1.7.1, 1.7.2 Jun 30, 2022
@twschiller twschiller modified the milestones: 1.7.2, 1.7.3 Jul 21, 2022
@twschiller twschiller modified the milestones: 1.7.3, 1.7.4 Jul 29, 2022
@twschiller twschiller removed their assignment Aug 8, 2022
@twschiller twschiller modified the milestones: 1.7.4, 1.7.X Aug 8, 2022
@twschiller
Copy link
Contributor Author

We haven't seen this recently and have been updating related messenger code. Will re-open as necessary

@fregante
Copy link
Collaborator

Likely it has been fixed/hidden by:

The underlying issue is being tracked in:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working runtime
Projects
None yet
Development

No branches or pull requests

2 participants