Is there any way to pass a File
object via postMessage
or any similar function?
I need to communicate between page-related JS code and the one from content script as stated in the documentation.
If I try to pass it directly it gives me the following error:
Uncaught DataCloneError: Failed to execute 'postMessage' on 'Window': An object could not be cloned