Hi! We use chrome.runtime.sendMessage() in the content script to send a message to the service worker, which is listening to that message via chrome.runtime.onMessage.addListener(). There is a fixed set of message types that the content script can send. If a message with an unknown type is sent to the service worker, it will log an error.
We're currently migrating from Manifest V2 to Manifest V3. So, we removed one message type from both the content script and the service worker (previously background page). Now, we're seeing errors being logged for that message type, even though it no longer exists in the new version of the content script (it only exists for the content script in the older version).
I believe that it should be technically impossible for the orphaned content script (from the old extension version) to communicate with the service worker (of the new version). But, it seems that is happening in this case.
We know that this error only happens when the user updates their extension (after checking for a few users), but we haven't reproduced it yet. Any thoughts about how this can happen? Is this a known issue?