[Bug]: Polling initiated in UI sometimes continues when the UI is closed #29699
Labels
Sev2-normal
Normal severity; minor loss of service or inconvenience.
team-assets
team-extension-platform
Extension Platform team
type-bug
Something isn't working
Describe the bug
Polling initiated in the UI sometimes continues when the UI is closed. Specifically this was encountered with the
account-tracker-controller
, but it may impact other token-based polling controllers as well.We have UI code to unregister polling tokens on unmount, but this doesn't always work when the window itself is closed. The process is terminated before the on unmount code finishes.
Expected behavior
When a polling token is registered by a specific UI instance, it should be automatically unregistered when the UI instance closes.
Screenshots/Recordings
No response
Steps to reproduce
This is not a minimal reproduction, but I was able to reproduce this by following the reproduction steps in this issue: #28868
Error messages or log output
Detection stage
On main branch
Version
main
Build type
None
Browser
Other (please elaborate in the "Additional Context" section)
Operating system
Other (please elaborate in the "Additional Context" section)
Hardware wallet
No response
Additional context
I haven't investigated which release this was introduced in. I repro'd it on
main
, but I expect it impacts prod as well, and has for some time.Severity
No response
The text was updated successfully, but these errors were encountered: