[Developer Preview Android P] WebView not correctly rendering
Reported by
ahin...@league.com,
May 24 2018
|
||||
Issue description(Refile from https://issuetracker.google.com/issues/79549914) The Android WebView doesn't seem to be rendering content correctly in some cases. We use multiple webviews to render dynamic content and on android P we either see a blank webview, or only a portion of the webview is displayed. See sample html and screenshots for examples. This content works perfectly in android oreo and lower. * Which Developer Preview build are you using? See Settings > About phone > Build number (for example OPP5.170921.005). PPP2.180412.013 * Is this a regression from O to P? Yes * What device are you using? (for example, Pixel XL) Pixel * What are the steps to reproduce the problem? (Please provide the minimal reproducible test case.) Load the html in the attached file into a webview * What was the expected result? HTML Renders in the webview * What was the actual result? The webview displays a blank screen, or part of the html renders, or rarely the html renders completely. Trying to interact with the webview by pinching to zoom the content causes the HTML to render correctly. See screenshots: (https://drive.google.com/drive/folders/1jBzKHKmQC-wNYat3BdWFtaeS39O2-zZE?usp=sharing)
,
May 24 2018
Thanks for this report. Could you please upload a minimal apk that reproduces the issue? I'm able to view the html file properly in a webview on P. Thanks!
,
May 25 2018
Attached is a test project and APK illustrating the issue.
,
May 25 2018
Note: It's still finicky to reproduce, if you see text (besides the "test" above the red), try killing the app and restarting it a few times. Here's a video showing: https://www.youtube.com/watch?v=2wMxXqtHX2w&feature=youtu.be
,
May 25 2018
I believe this is related to the new hwui pipeline in Android. I've filed internal bug http://b/80318131. Note: I can only repro with the APK in comment #3, I cannot repro with the HTML in the original report. It would be great if someone could confirm these are indeed the same problem. I'm leaving this issue open until we can confirm this (and I'm bumping priority, so that this is on the team's radar, in case this requires Android-side changes).
,
May 29 2018
I've created an APK and supplied the source code with an example that consistently reproduces the issue. It seems to happen more consistently when we apply a rotation transform to the Webview and put it in a recyclerview like in the attached APK. We also see it consistently when we put the webview in this custom CardStack view too: https://github.com/mutualmobile/CardStackUI (not in the example APK)
,
May 29 2018
I'm not sure it's related to the HTML I originally provided; but the example I supplied does reproduce the issue with that HTML.
,
May 29 2018
Here's a screenshot of the output of the APK I provided as well
,
May 30 2018
Thanks! I have confirmed that WebViewBug.apk is also caused by the HWUI switch to skiagl. I will pass APK along to the internal Android issue. I'll close this crbug in favor of http://b/80318131. However, please update this if you see any new issues. Also, please try out the upcoming P developer previews and confirm that our fix has resolved all rendering issues for your app.
,
Jun 6 2018
Still an issue on DP3.
,
Jun 7 2018
jetison.24@ can you provide a link to your app in the play store, or upload an APK on which it reproduces? We believe the problem has been fixed, but I'm not sure if this fix made it into developer preview 3 (I'm confirming this internally).
,
Jun 7 2018
ntfschr@ The previous APK I posted here (WebViewPIssue.apk) still reproduces the issue for me. The issue reporters APK that was also posted here has rendering issues for me too.
,
Jun 7 2018
Thanks! I just double checked that both APKs appear to work as expected in P--I think the fix simply missed the deadline for developer preview 3. |
||||
►
Sign in to add a comment |
||||
Comment 1 by vssummer...@gmail.com
, May 24 2018