Hi! As we're rolling out our MV3 extension, we're hearing intermittent issues where the extension becomes unresponsive for some users. All of them have the extension service worker inactive. Clicking on its link in chrome://extensions "Inspect views" doesn't open its console window. It remains inactive even when the user is actively switching browser tabs. This is unexpected because our service worker has a top-level tabs.onActivated listener. The users are on the latest Chrome 126.
When this issue happens, the "chrome-extension://<ID>/manifest.json" doesn't load, and it gives a page unresponsive popup after waiting for a few minutes. Also, sometimes the offscreen document is missing from the "Inspect views" list. Other times, it's there but its "Elements" panel is empty. But, mostly its console doesn't open on clicking.
The only way to fix this issue is to re-enable the extension, re-install the extension, or restart the browser. It's difficult to debug this issue because the extension context console is inaccessible.
I'm curious if other devs are seeing similar issues and if so are there any techniques to handle these issues more gracefully/automatically? Also curious if the Chrome team is aware of similar bugs and working to address them? Thanks!