Details
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
For Gerrit Dashboard: QTBUG-104869 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
462728,3 | Fix initialization of QWebEngineDownloadRequest::totalBytes for Widgets | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
463744,2 | Fix initialization of QWebEngineDownloadRequest::totalBytes for Widgets | 6.5 | qt/qtwebengine | Status: MERGED | +2 | 0 |
463745,2 | Fix initialization of QWebEngineDownloadRequest::totalBytes for Widgets | 6.4 | qt/qtwebengine | Status: MERGED | +2 | 0 |
463746,3 | Fix initialization of QWebEngineDownloadItem::totalBytes for Widgets | 5.15 | qt/qtwebengine | Status: MERGED | +2 | 0 |
463793,2 | Fix initialization of QWebEngineDownloadRequest::totalBytes for Widgets | 6.4.3 | qt/qtwebengine | Status: MERGED | +2 | 0 |