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

QWebchannel lost qt.webchannneltransport reference in case of page reload

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.7.1
    • 5.7.0 Alpha
    • WebChannel, WebEngine
    • None
    • ca6762abde85fe3104ec4f064b85319474ba2deb

    Description

      On app init, a webchannel is associated to a QTWebengine page with new mandatory worlid.

      In case of page reloading, the script associated to the page is also reloaded, and a new webchannel is created, unfortunatly as described into the 5.7 code documentaiton the sandbox breaks the existing connection.

      As a concequence no more reference in javascript available on qt object.

      How to work around this damned functionnality ?

      Page Reloading is not compatible with qt webchannel transport on QT5.7, added scripts are not reloaded in the same world or there is no way to reconnect webchannel after reload due to worldid mandatory parameter added in 5.7.

      Missing a reload signal to WA ?

      Attachments

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

        Activity

          People

            tvete Paul Olav Tvete
            zucher vincent
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes