Using MessageChannel/BroadcastChannel from bootstrap.js

Hi all,
So I’m sending via transfer large ArrayBuffers from bootstrap to XUL windows with window.postMessage. I now need to get a modified ArrayBuffer back to bootstrap.js.

I read about the MessageChannel and BroadcastChannel API, and see that they are in the global window scope. They are not in the bootstrap.js scope. I was wondering if there was a way use these APIs from bootstrap?

The docs say it is availble in WebWorkers/ChromeWorkers, so if not possible to use from bootstrap.js I was thinking of: As I spawn the ChromeWorker from bootstrap.js, I can get a MessagePort to the worker and transfer the MessagePort to the windows, and have the ChromeWorker and windows talk directly (without bootstrap.js in the middle after the initial handshake).

Thanks