When developing my chrome extension background service worker, I am incorporating listeners like
chrome.tabs.onRemoved.addListener
. As stated in the documentation here: https://developer.chrome.com/docs/extensions/mv3/service_workers/#unloading, it mentions that:
Service workers automatically unload after a period of inactivity.
Does this imply that I don't need to implement logic to remove my listeners when the worker is suspended? For example, calling removeListener
such as
chrome.tabs.onRemoved.removeListener
on browser.runtime.onSuspend
.