Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.1, 6.8.2
Description
When loading HTML content with a BaseURL using WebView.loadHtml(), the content doesn't get loaded and displays incorrect content.
The issue didn't appear in version 6.7.2 and 6.8.0, but it reproduces in versions 6.8.2 and 6.8.1.
To reproduce the issue, run the attached example project.
The minibrowser example project was edited, and the following lines have been added to main.qml:
Component.onCompleted: { goButton.clicked() } ToolButton { id: goButton text: qsTr("Go") onClicked: { Qt.inputMethod.commit() Qt.inputMethod.hide() // webView.url = utils.fromUserInput(urlField.text) var shtml = "<html><body><p>Hello World!</p></body></html>" webView.loadHtml(shtml, "https://example.com/"); } }
Attachments
Issue Links
- duplicates
-
QTBUG-136082 Android Webview fails to load all html string because it is percent-encoded
-
- Reported
-
- resulted from
-
QTBUG-129303 [Android] WebView.loadHtml() fails to correctly encode certain strings?
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-134723 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
641024,9 | Handle non data base urls schemes in loadHtml | dev | qt/qtwebview | Status: NEW | +2 | 0 |