Move the logic of delayed message sending out from emscripten-module.js into a separate helper class.
This lets us reuse it in other places, namely for the communication with the Offscreen Document that's currently being implemented for manifestv3. Also this extracted code can be covered with unit tests now.
Move the logic of delayed message sending out from emscripten-module.js into a separate helper class.
This lets us reuse it in other places, namely for the communication with the Offscreen Document that's currently being implemented for manifestv3. Also this extracted code can be covered with unit tests now.