Hello,
I’m now refactoring my add-on from base64 images to blobs and I noticed some strange behavior - in Chrome - where sending blobs through internal messaging doesn’t work (blob gets converted to empty object).
Then I checked the MDN:
Which says that the message is:
An object that can be serialized to JSON.
I’m pretty sure blob cannot be serialized to JSON.
I’ve tried to find a W3C spec on this topic but could find any details:
https://browserext.github.io/browserext/#dom-browserextbrowserruntime-sendmessage
So who is doing this right? What is the expected behavior?