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

Issue 638253 link

Starred by 3 users

Issue metadata

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



Sign in to add a comment

Automatic Webview Updates kills Webview based App in running in the foreground without user permission

Reported by sirius.p...@gmail.com, Aug 16 2016

Issue description

Steps to reproduce the problem:
If the user has enable automatic updates in Play Store-->Settings , then any WebView based application that is in running foreground when WebView is being updated by Google Play Store services in background, once the WebView update completes (typically takes about 1 to 2 minutes to update WebView in background)  the WebView base Application which was running in foreground at the time update of WebView becomes unstable and sometimes does not recover at all even after the user kills and restarts. 
          => Basically Google Play Store service/Package Manager which is updating the WebView component does not seem to detect that there is a WebView application that is currently running and should postpone the installation, instead is simply updates and as a result the WebView based application becomes unstable and this leads two kinds of problems
                       a) User killing the WebView based App and restarting the App whenever there is a WebView update results in App working fine, but this causes user inconvenience and also has potential to impact more seriously if the application is a Kiosk App etc.
                       b) WebView based application does not recover at all after WebView update. Even killing and restarting the App does not help. This is mostly observed on Samsung tablets running Android 5.x and 6.x ...not on Google Pixel C running 6.x or 7.0.  Sometimes user is able to recover WebView application by clearing App data and cache.  This is also not good as it results user losing a user data generated stored within the application

What is the expected behavior?
           => Google Play Store Services/Package Manager can do one or both of the following options 
1)  Detect that there is WebView based Application that is currently running in the foreground and must not allow WebView component to be update until that application is killed or at least provide a pop up message to the User so that user can decide whether kill application or whether postpone installation of WebView.
2) Send notification to Webview based application running in foreground to inform its user and accordingly take right access and wait for the webview based application to be killed by user or with user permission force restart the app.

What went wrong?
WebView updates kill Webview based application in foregorund without informing both the Webview based Application and the user of the Webview based application.

Crashed report ID: No. 

How much crashed? Whole browser

Is it a problem with a plugin? N/A 

Did this work before? No 

Chrome version: 52.0.2743.116  Channel: stable
OS Version: 5.x, 6.x and 7.0
Flash Version: NA

This issue must be fixed on highest priority because this is impact so many webview (i.e. hybrid) based applications on Play store and also similar applications that are currently in development as this reduce the confidence of the hybrid application developers because the developers have no control of preventing webview updates that can break they applications in the field.
 

Comment 1 by torne@chromium.org, Aug 16 2016

Cc: gsennton@chromium.org torne@chromium.org
Components: Mobile>WebView
Labels: Needs-Feedback
Can you be more specific about which devices you've observed the problematic behaviour on? We have never seen this ever, so we would need some way to reproduce it. Even just one specific device/OS version/application combination where this happens would be a good start.

>>>Can you be more specific about which devices you've observed the problematic behavior on?
 the issue was observed on Samsung Tab S2 (sm-T815) running Android 6.0.1 with Webview 51.xx.

Steps to recreate this issue :
 1) In Google Play Store App--->settings, ensure that automatic updates is enabled and ensure the tablet has internet connection.
 2) Now navigate to Android Settings-->Apps-->Android System Webview and uninstall if any earlier installed updates.
 3) And then install a webview based hybrid application (preferably an application that has some html5 based canvas and SVG animations that are active when the app is in foreground) 
 4) Start this application and leave it running in the foreground 
 5) Wait for Google Play Store to push WebView update onto the tablet and observe that immediate after installation of webview update the application in foreground hangs or does not accept any user input or does not restart.

thanks
Padua

Comment 3 by torne@chromium.org, Aug 18 2016

Can you suggest a *specific* application that you have confirmed definitely has this issue, to make sure we are testing something you know is broken?

Comment 5 by torne@chromium.org, Aug 31 2016

Hm, doesn't look like we have a galaxy tab S2 anywhere :/

Is there another device where you've seen this?
Project Member

Comment 6 by sheriffbot@chromium.org, Sep 8 2016

Labels: -Needs-Feedback Needs-Review
Owner: torne@chromium.org
Thank you for providing more feedback. Adding requester "torne@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 7 by torne@chromium.org, Sep 13 2016

Owner: satyavat...@chromium.org
Satyavathi, do we have a Galaxy Tab S2 anywhere that I just can't see on the skylab stock list? Or could we try testing this app on a similar samsung device? (at least the same OS version)? Specifically we're looking for the app not working after a webview update - it's expected to be killed, but it should restart just fine after the update is complete.
Cc: sbash...@chromium.org
torne@ we do have 2 Galaxy tab S2's. sbashyam@ from our team will check and update the bug soon.

Thanks!
Owner: sbash...@chromium.org
sbashyam@ you had worked on this bug few weeks back. Could, you update your findings?

Thanks!
Owner: ----
I see the same observation as comment #7 with 2 Samsung Tab S2(MMb29K/6.0.1)devices  with System image 49.0.2623.105 when MCL_Smart(2.1.0) is opened in foreground and upgrading by side loading 51.0.2704.117 OR Playstore update does kill the foreground app  but when relaunched , able to use the application.
Owner: torne@chromium.org
your description sounds like the right behavior to me.  passing to Torne in case he wants more investigation.

Comment 12 by torne@chromium.org, Nov 14 2016

Status: WontFix (was: Unconfirmed)
OK, so we can't reproduce this with the device/app mentioned, it's not a behaviour we've had reported by anyone else, and I can't figure out how this could possibly happen, so I don't think there's anything else we can do with the information provided I'm afraid :/

Closing for now; we can reopen if you can suggest a more specific way to reproduce this issue, or provide a bugreport and system logs from this happening on a device that we can look at.

Sign in to add a comment