Android O WebView renders layout too small after 2nd loading
Reported by
hannah....@stellarloyalty.com,
Aug 15
|
||||
Issue descriptionExample 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:
,
Aug 15
This is most likely due to 737777.
,
Aug 15
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 :)
,
Aug 16
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
,
Aug 16
Your WebView version should match you chrome version, unless you changed it from system setting > developer options.
,
Aug 17
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
,
Aug 17
Thanks. Since the issue is in M68, it doesn't look like a zoom-for-dsf issue. Un-assign myself for retriage
,
Aug 17
,
Aug 17
|
||||
►
Sign in to add a comment |
||||
Comment 1 by mknowles@chromium.org
, Aug 15