Started getting this after the Firefox 79.0 update and I don’t see what exactly in the change log could break this code:
import browser from "webextension-polyfill";
export const background_script_api = new Proxy(
{},
{
get(target, command) {
return (data) => browser.runtime.sendMessage({ command, data })
},
}
);
Throws:
Error: Conduits:RuntimeMessage: message reply cannot be cloned.
get background-communicator.js:7
webextension-polyfill is a NO-OP when running in Firefox.
This error doesn’t happen in the previous version of Firefox, only in 79.0