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

WebChannel fails from WebEngineView when WebEngineProfile specified

    XMLWordPrintable

Details

    • 754edb8dadb9b3086f67eadabdde9659dfcb7caf

    Description

      The WebChannel fails to connect when created in WebEngineView AND WebEngineProfile is specified.

      If WebEngineProfile is not specified then the WebChannel connects fine.

      I have debugged this down to webChannel.js sending the Init channel message and it never gets a response back.

      Attached is a small example.

      The example starts WebEngineView and loads an html file. When WebEngineView gets signal that it is loaded, then it injects some javascript (see qml file). The javascript creates web channel and calls "setStreamId" back in the QML object. I print out console messages along the way to see how far it gets. If everything works you should see value '89' be passed back to QML. If you then uncomment out the call that sets 'profile' property in webView and run again you should see it not come back from creating the channel.

      You probably need to update qt.conf to point at QT installation.

      Thanks for looking at this issue.
      Sherry

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mibrunin Michael Bruning
            sherry Sherry
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes