New issue
Advanced search Search tips

Issue 619346 link

Starred by 4 users

Issue metadata

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



Sign in to add a comment

targetSdkVersion <= 18 in manifest causes strange behavior

Reported by anthonyo...@gmail.com, Jun 11 2016

Issue description

Example URL:
https://reverb.com/

Steps to reproduce the problem:
1. Create project with android:targetSdkVersion="18" (or lower) in Android manifest
2. Create WebView with JavaScript, wide viewport, and open in overview all enabled
3. Load https://reverb.com/ in WebView
4. Once site loads, tap the 3 bar "hamburger" menu button in the upper right corner of the site

What is the expected behavior?
The 3 bar "hamburger" menu button should open the site menu.

What went wrong?
When SDK target is set to 18 or lower in the Android manifest, the site's menu will not work. When the SDK target is set to 19 or higher, the menu button will open the menu.

This is just one example. I suspect that the target set <= 18 is responsible for strange site behavior and rendering on other sites too.

Also reported this in the Android bug DB a while back:
https://code.google.com/p/android/issues/detail?id=82880

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? Yes pre-Chromium WebView before Android 4.4

Does this work in other browsers? Yes 

Chrome version: 52.0.2743.32  Channel: n/a
OS Version: 6.0.1
Flash Version: none
 
Components: Mobile>WebView

Comment 2 by mkwst@chromium.org, Jun 13 2016

Cc: torne@chromium.org
Components: -Blink
Status: Untriaged (was: Unconfirmed)
torne@, can you help me find the right person to whom to route this?

Comment 3 by torne@chromium.org, Jun 13 2016

Status: WontFix (was: Untriaged)
Targeting 18 or lower enables a bunch of backward-compatibility quirks to emulate the behaviour of the old WebView in several respects - see https://developer.android.com/guide/webapps/migrating.html for a list. These quirks mean that it will behave differently to a standard web browser and will not necessarily render modern web pages correctly.

Target a modern SDK version in your app instead.

Sign in to add a comment