al
unread,Mar 22, 2025, 12:14:20 PMMar 22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions, Mythical 5th, Svyatoslav Alekseev, woxxom
In addition to what Mythical 5th said about serialization, if I were you, I would assume it's not supported.
Looking at the
short doc, the bottom section seems to indicate that crossOriginIsolation isn't fully implemented in Service Workers.
The bug tracker it links is labelled as fixed, but it looks like some commenters don't believe it is. There are also some emails of the devs that worked on that issue (do what you will with that info, I wouldn't myself).
Regardless, it doesn't seem like an Extension service worker can be crossOrigin isolated, given, even with the manifest keys present, it still returns false when checking.
Meaning, even if your Offscreen doc is isolated (which, with the keys present, it is), so long as the SW isn't, you can't share the SAB, using something like postMessage.
Since an MV2 Background Page is just that, a page, rather than an SW, it works fine.
That's what I got from gleaming MDN and Chrome dev docs anyway. As I said up top, I'd just assume it's not supported, at least unless the DevRel folk say otherwise.