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

Crash when closing a WKWebView backed WebView

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.12.2
    • Fix Version/s: None
    • Component/s: WebView
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            sorvig Morten Sørvig
            Reporter:
            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