Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-82051

Qt-webassembly multithreading doesn't work on Firefox 72+

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.14.0
    • Core: Threads
    • 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.

      Attachments

        1. config.png
          59 kB
          liang jian
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lpotter Lorn Potter
            jianliang79 liang jian
            Santtu Ahonen Santtu Ahonen
            Tor Arne Vestbø Tor Arne Vestbø
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes