Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
5.14.0
-
None
-
Firefox 72+
qt-webassembly multithreading 5.14
emscripten 1.39.4-fastcomp
Description
Qt-webassembly multithreading doesn't work on Firefox 72+ anymore, it used to work on Firefox 71 and before.
I have a https website which use wasm module built with qt5 webassembly multithreaded version. I have set the following header to my website:
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp
I also set javascript.options.shared_memory and dom.postMessage.sharedArrayBuffer.withCOOP_COEP options from about:config page of my firefox to ture.
I can run this website without any problem with Firefox 71, but after I have upgraded Firefox to 72 it fail to load the wasm module with the following error message:
TypeError: The WebAssembly.Memory object cannot be serialized. The Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy HTTP headers will enable this in the future.
If I open the qt multithreading demo https://www.qt.io/web-assembly-example-mandelbrot with Firefox 72+ it will fail to load with exactly the same error message in the console.
BTW: Qt-webassembly multithreading works well in Firefox nightly build but not in the officially released version.