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

Crash when closing a WKWebView backed WebView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 5.12.2
    • WebView
    • None
    • macOS

    Description

      Using a darwin backend ( QT_WEBVIEW_ENGINE=native ), 
      Closing a window which includes a native webview leads to a crash

      import QtQuick 2.0
      import QtWebView 1.1
      import QtQuick.Window 2.12
      Window {
          WebView {
              anchors.fill:parent
              url: "https://google.com"
          }
          Component.onCompleted: {
              window.show();
          }
      }

      Source
       

          auto e = new QQmlApplicationEngine(qobject_cast<QObject*>(this));
          disconnect(e, &QQmlApplicationEngine::quit, nullptr, nullptr);
          e->load(source);
          connect(e, &QQmlApplicationEngine::quit, &QQmlApplicationEngine::deleteLater);
      

       

       

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            cor3ntin Corentin Jabot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes