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

QML WebEngineView crash when link clicked

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • None
    • 5.15.0
    • WebEngine
    • None
    • Windows

      A new empty QtQuick project with this QML, and required web engine dependencies, will crash when clicking a link for a new view:

      import QtQuick 2.15
      import QtQuick.Window 2.15
      import QtWebEngine 1.11
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          WebEngineView {
              anchors.fill: parent
              url: "https://www.qt.io"
          }
      }
      
      

      Handling the signal newViewRequested(request) will avoid the crash. Documentation says not handling the signal, "the requested load will fail." I doubt a crash is the intended mechanic 

      I prefer the view does nothing at all.

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

            qt_webengine_team Qt WebEngine Team
            hyldegaard Mads Hyldegaard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes