I’m slowly preparing for Manifest V3 and the first step seems to be making background script non-persistent:
"persistent": false
But how do I test that my code still works?
Can I force the background to unload somehow?
And can I detect that the background script was unloaded / reloaded?
Thanks!
EDIT:
So, I’ve just found out that Firefox actually doesn’t support non-persistent (event) background pages .
Chromium then have runtime.onSuspend
event: runtime.onSuspend - Mozilla | MDN