Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15, 6.3
-
None
-
84ebd69859 (qt/qtwebengine/dev) 84ebd69859 (qt/tqtc-qtwebengine/dev) 8c149fcbef (qt/qtwebengine/6.3) 903365f84f (qt/qtwebengine/6.4) 3d23b379a7 (qt/qtwebengine/5.15) 3d23b379a7 (qt/tqtc-qtwebengine/5.15) 8c149fcbef (qt/tqtc-qtwebengine/6.3)
Description
Attempts to load html files from the qrc scheme fail. If you poke around in dev tools, you get this message upon setting window.location.href to a QRC URL pointing to an HTML file:
vm404:1 Resource interpreted as Document but transferred with MIME type application/x-extension-html
This ultimately seems to be the root cause of the issue: a wrong mimetype is detected for .html files in QRC. QMimeDatabase detects the file as application/x-extension-html rather than text/html, reports that to the QrcUrlSchemeHandler, which reports back to the QWebEngineUrlRequestJob, which eventually gets back to Chromium, which sees it got a non-text/html page, and decides it doesn't know what to do with it, rendering nothing.
Attachments
Issue Links
- duplicates
-
QTBUG-97392 WebEngine fails to load urls from resources
- Closed