New issue
Advanced search Search tips

Issue 874369 link

Starred by 1 user

Issue metadata

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


Participants' hotlists:
Hotlist-1


Sign in to add a comment

Android O WebView renders layout too small after 2nd loading

Reported by hannah....@stellarloyalty.com, Aug 15

Issue description

Example URL:
https://policies.google.com/

Steps to reproduce the problem:
1. Create an Android Application that loads a webview with this url https://policies.google.com/
2. On first load, the webpage is shown properly. 
3. Load the page again, the web page will be too small.

What is the expected behavior?
Upon succeeding load of the webpage, it must not be redered small. 
Also on the phone's chrome browser, it works  fine too. It is only when you are inside a webview app that it renders the layout too small after 2nd loading

What went wrong?
On some Android Oreo devices, when I load an url on webview for the first time, the URL page loads properly. However, when I load the URL again, the page is zoomed out. On devices lower than android oreo, the page loads properly for all devices.

Also, when you kill the app on the background and load again, the URL loads properly. On the second and succeeding tries, it shows the zoomed out version again. I attached the images of loaded URL below
Android XML Code:

<WebView
android:id="@+id/content_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
Java Code:

    private WebView mWebView;
    mWebView = (WebView) view.findViewById(R.id.content_view);
    mWebView.loadUrl("https://policies.google.com/");
URL: https://policies.google.com/

Take note that this happen in other URLs too. https://policies.google.com/ is just an example

It works on the following: Huawei nova 2i RNE-L22, Android 8.0.0

It DOES NOT work on the following Android 8.1.0; Pixel 2 Android 8.0.0; Samsung SM-G950FD Android 8.0.1; Huawei P20 EML-L29

Does it occur on multiple sites: Yes

Is it a problem with a plugin? N/A 

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 58.0.3029.125  Channel: stable
OS Version: 8.0
Flash Version:
 
Screen Shot 2018-08-10 at 6.17.49 PM.png
48.1 KB View Download
Screen Shot 2018-08-10 at 6.18.16 PM.png
48.8 KB View Download
Components: -Blink Blink>Layout
Sending this to Blink>Layout for an initial look.  If it turns out to be not Layout-related, please redirect as required.
Owner: eirage@chromium.org
Status: Assigned (was: Unconfirmed)
This is most likely due to 737777.
Could you confirm the chrome version at chrome://version, and also do you have any flag not default at chrome://flags?

58.0.3029.125 sounds like a very old version :)
Hi, 

Just to add, WebView renders layout too small after 2nd loading ONLY happens on the webview when you are inside an android application. 

If you access it on the chrome app, it renders correctly even after the second loading.

I cannot check chrome://version and chrome://flags inside android webview

Hope this answers your question

Thanks,
Hannah
 

Your WebView version should match you chrome version, unless you changed it from system setting > developer options.
Hi. In addition, I tested this on Google Pixel and this also happen. Chrome version: 68.0.3440.91
Androidd System Webview: 61.03163.98
Status: Until (was: Assigned)
Thanks.

Since the issue is in M68, it doesn't look like a zoom-for-dsf issue.

Un-assign myself for retriage
Cc: eirage@chromium.org e...@chromium.org
Components: Mobile>WebView
Owner: ----
Status: Untriaged (was: Until)
Status: WontFix (was: Untriaged)
Resolved in b/112604032

Sign in to add a comment