Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.9.0
-
None
-
Qt 6.9.0 Android arm64
-
-
Android
Description
This example fails to load on android
WebView { Component.onCompleted: loadHtml("<html><body>Hello</body></html>", "https://example.com") }
and displays the following percent encoded string of the same html
"%3Chtml%3E%0A%3Cbody%3E%0AHello%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E"
While digging into this, I found, that the html content is QUrl::toPercentEncoding(html) encoded and all the html tags are stripped away.
The offending commit is https://github.com/qt/qtwebview/commit/9feccda3138fe0d6c88bf8ba99eb4b57965e95a6
Why someone wrote this line and pushed it to production is beyond my comprehension.
As of now Android WebView in 6.9.0 is useless for loading simple html content.
Attachments
Issue Links
- resulted from
-
QTBUG-129303 [Android] WebView.loadHtml() fails to correctly encode certain strings?
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-136082 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
641024,2 | WIP: Handle non data base urls schemes in loadHtml | dev | qt/qtwebview | Status: NEW | -2 | 0 |