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

QtWebEngineView fails to load huge page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P1: Critical
    • None
    • 5.6.0, 5.7.0
    • WebEngine
    • Qt 5.6.0 on Windows 7 64bit

    Description

      I'm showing PDF files using PDF.js (see https://mozilla.github.io/pdf.js/) within a QWebView / QWebEngineView.
      For this the PDF is embedded into HTML text using the following fragment:
      " <frameset>
      <frame src="viewer_frame.html?file=data:application/pdf;base64,%1" name="viewer">
      </frameset>"
      where the "%1" is replaced by base64 encoded PDF code.

      This worked fine in Qt5.5.1 and QWebView.
      In Qt5.6 and QWebEngineView this only works for smaller PDFs. When I try to load larger PDFs, resulting in HTML code larger than about 2MB, then absolutely nothing happens.
      There is no error message and no loadStarted() signal either. QWebEngineView seems to completely ignore the input.

      Expected result would be the page to be shown - or at least any reaction at all.

      Attachments

        1. WebEnginePage.rar
          3.46 MB
        2. largeData.cpp
          2 kB

        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
              cyril4 Harald Prasser
              Votes:
              7 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes