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

custom url scheme handler +QBuffer will crash the application.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.15.2, 6.2.4, 6.3.0
    • WebEngine
    • None

    Description

      check the attachment
      the code is just like the following

      void CustomSchemeHandler::requestStarted( QWebEngineUrlRequestJob * requestJob )
      {
        QByteArray ba("this is a test body");
        QBuffer buffer;
        buffer.setData( ba );
        buffer.open(QBuffer::ReadOnly);
        buffer.seek(0);
      
        requestJob->reply( "text/html", &buffer );
      //  buffer.readyRead();
      
      }
      

      Attachments

        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
            xiaoyifang yifang xiao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes