New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 846350 link

Starred by 4 users

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

[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)

 
webviewhtml.html
15.9 KB View Download
Screenshot_20180511-130339.png
169 KB View Download
Screenshot_20180511-130353.png
199 KB View Download
Screenshot_20180511-130359.png
288 KB View Download
You can sometimes clear the cache from the appdata, it sometimes solves the issue.
Cc: jamwalla@chromium.org
Labels: Needs-Feedback
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!
Attached is a test project and APK illustrating the issue.
WebViewPIssue.zip
132 KB Download
WebViewPIssue.apk
1.4 MB Download
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
Cc: changwan@chromium.org ntfschr@chromium.org torne@chromium.org
Labels: -Pri-3 -Needs-Feedback Pri-2
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).

Comment 6 by ahin...@league.com, 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)

WebViewBug.zip
12.7 MB Download
WebViewBug.apk
1.7 MB Download

Comment 7 by ahin...@league.com, 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.

Comment 8 by ahin...@league.com, May 29 2018

Here's a screenshot of the output of the APK I provided as well
Screenshot_20180529-154250.png
69.2 KB View Download
Status: WontFix (was: Unconfirmed)
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.
Still an issue on DP3.
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).
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.
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