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

QWebEnginePage::setHtml crash when render process crashed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.10.0 Beta 1
    • 5.7.1, 5.8.0
    • WebEngine
    • None
    • Linux
    • cf06b687845b6e37ef3cd80fd644bb7d769f0033

    Description

      When render process crashes, calling QWebEnginePage::setHtml() will also crash the application.
      QWebEnginePage::load() correctly restarts render process and doesn't crash.

      test.cpp
      QWebEnginePage *page = new QWebEnginePage;
      connect(page, &QWebEnginePage::renderProcessTerminated, [=]() {
          QTimer::singleShot(0, [=]() {
              page->setHtml(QStringLiteral("<html></html>"));
              // Crash
          });
      });
      

      Attachments

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

        Activity

          People

            pvarga Peter Varga
            nowrep David Rosca
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes