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

QML WebEngineView crash when link clicked

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        1. crash.png
          9 kB
          Mads Hyldegaard

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes