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

QtWebEngineView fails to load huge page

XMLWordPrintable

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

      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.

        1. WebEnginePage.rar
          3.46 MB
        2. largeData.cpp
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt_webengine_team Qt WebEngine Team
            cyril4 Harald Prasser
            Votes:
            7 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes