So, if I need to send a message to the service worker, would it be prudent to first send a wakeup message (of which may error out because the service worker might have gone to sleep, but, will, by that message, wake up again) before sending the message you really need, at least until this inconsistency bug is ironed out?
If this is true, then wow, the Google Chrome Extension team really needs to recognize the following problems and perhaps reconsider their Jan 1, 2023 deadline for MV3:
- Service workers not waking up consistently when being sent a message after long idle times.
- The declarativeNetRequest feedback not working consistently or having super low quota limits such that you can't update the icon badge with an accurate count on how many items being blocked.
- The declarativeNetRequest regex or url filter dynamic rules having too low of a quota to be useful.
- The DevTools doesn't have a chrome.storage editor and it requires a third-party plugin -- luckily it's free and actively maintained by some generous coder, although that editor won't load on a service worker's DevTools, although that service worker can interact with chrome.storage.