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

WebAssembly app doesn't start in the browser with the --proxy-to-worker compilation flag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • 5.15.0
    • Build tools: qmake
    • None
    • Qt for WebAssembly 5.15 with both emscripten 1.39.8, firefox 80, chrome 83;
      Qt for WebAssembly 5.14
    • Linux/Other display system, WebAssembly

      It looks like Qt is creating non-working HTML and JS code to run the wasm-program "Hello World!" with the "--proxy-to-worker" flag. Because the same application without qt and with this flag works fine. I tried running in different browsers on different OS, but the result is the same.

       

      Еrror in the browser:

      "TypeError: Cannot read property 'addEventListener' of undefined"

      The exception is always on the same line.

        1. src+build.zip
          49 kB
          Andrea Devil
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lpotter Lorn Potter
            dykson Andrea Devil
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes