Html content not loading inside the WebView
Reported by
swapnilg...@gmail.com,
Jan 11
|
||||||||
Issue descriptionDevice name: Xiaomi Redmi Prime 3S Android version: 6.0.1 MMB29M WebView version (from system settings -> Apps -> Android System WebView): 72.0.3626.53 Application: Riyaz Application version: 3.3.2 URLs (if applicable): Steps to reproduce: (1) Install the Riyaz app from (https://play.google.com/store/apps/details?id=com.musicmuni.riyaz&hl=en_IN) (2) Login into the app and then on the home screen go to Profile -> Get inspired (3) Open any blog from the list. Expected result: The blog opens with the text visible Actual result: The blog is not rendered into the WebView Note: When I uninstall the updates for the 'Android System Webview', the content start to show on the blogs. Also, When I remove the css (which can be found here https://pastebin.com/FeG3Wetb) when rendering the content, I can see some content being rendered.
,
Jan 15
swapnilgupta.iiith@, is that possible for you to provide a minimal repro sample app/web content for us to debug, we don't know what this app (including the webpage) is doing. I could only tell the app is loading the page via loadData*(), the CSS you attached is very long and hard to read. I did a per build bisect 72.0.3597.0 is the last good build 72.0.3598.0 is the first bad build. Could anyone from testing team do a per CL bisect on this range, thanks! https://chromium.googlesource.com/chromium/src/+log/72.0.3597.0..72.0.3598.0
,
Jan 15
,
Jan 15
,
Jan 15
dneelamegam@ will try to get per-cl bisect and update the bug.
,
Jan 15
As per-CL bisect information: Good commit: 604398 Bad commit: 604399 You are looking for a change made after 604398 (GOOD), but before 604399(BAD) Suspect CL's: https://chromium.googlesource.com/chromium/src/+/b52ebdc80dde907896fdf8bafc231e30b348b30b smcgruer@, looks like this issue is related to your change. please take a look at, if its not related to your changes. please reassign back to me. Thanks!
,
Jan 15
,
Jan 15
Ah, thanks for the per-CL bisecting, this is WAI then. We have that change for making data URI to be aligned with spec, you need to encode your data URL so it could be parsed correctly, it depends on with API (loadData()/loadDataWithBaseUrl()) you are using, please refer to our talk about this https://youtu.be/HGZYtDZhOEQ?t=601
,
Jan 15
To summarize the presentation, you should take one of two options: 1. loadDataWithBaseUrl(unencodedHtmlContent) (easiest) 2. loadData(encodedContent) If you opt for option 2, we've updated our docs [1] with an example of how to do so reliably. [1] https://developer.android.com/reference/android/webkit/WebView.html#loadData(java.lang.String,%20java.lang.String,%20java.lang.String) |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by chelamcherla@chromium.org
, Jan 14