We've just added a new WORKERS reason which can be used to spawn a worker from an offscreen document: https://chromium.googlesource.com/chromium/src.git/+/a8fe947f9d5737f4e36fe32ab8fa851ea6da8865.
I have two extensions that can't upgrade to MV3.
1. Battery Status
Because service worker doesn't support battery status api, until
issue-1280007 be fixed, the extension can't upgrade to MV3.
Could offscreen add a "Battery" reason for this?
Note that this is a persistent use case. Because the extension needs to listen to some events like 'levelchange'. If the offscreen document is closed, there is no way to know the battery level change event, so it needs to open forever.
2. System Monitor (rely on chrome.system.cpu and chrome.system.memory api)
This extension is very simple. It just updates the extension's badge text or icon every 1-5 seconds (yes, seconds, not minutes).
Could offscreen add a "System" reason for this?
This is also a persistent use case. Because it will repeat forever. Imagine your operating system's built-in system monitor app updating CPU or memory usage every second.