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

QWebEngineDownloadItem::totalBytes() always returns -1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 5.15.14, 6.4.3, 6.5.1, 6.6.0
    • 5.15.10, 6.5.0 Beta3
    • WebEngine
    • None
    • Debian Testing
    • Linux/X11
    • 496647f76 (dev), 01be7f108 (6.4), 47c398a51 (6.4.3), a7454f915 (5.15), e77bd5f84 (6.5)

    Description

      `QWebEngineDownloadItem::totalBytes()` always returns `-1` even when it is easy to determine the file size.  For example, the following link always returns -1.

      https://download.stoutner.com/privacy-browser/Privacy%20Browser%203.10.1.apk

      Or, any link from this page or any other page I have tested.

      https://www.stoutner.com/privacy-browser-android/changelog/

       

      It is easy to determine the file size from the example link using an HTTP HEAD command, which makes me think that there is something broken in the `totalBytes()` method.

      Attachments

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

        Activity

          People

            pvarga Peter Varga
            sorenstoutner Soren Stoutner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: