New issue
Advanced search Search tips

Issue 698193 link

Starred by 4 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Bug



Sign in to add a comment

Infobar on iOS Chrome freezes inline video playing on webpage

Reported by lawre...@newbit.io, Mar 3 2017

Issue description

Steps to reproduce the problem:
1. Open the attached html file, or visit https://videotest.neocities.org/test1.html The page contains an auto playing video which is using video tag. The language of the webpage is set to "zh-TW" so it may trigger the Google Translate prompt. 
2. Close the Google Translate prompt by clicking the close button.
3. Refresh the page by using the refresh button and repeat step 2.

What is the expected behavior?
The video should be played normally for every refresh.

What went wrong?
The video starts lagging and eventually the picture freezes. The audio is not affected.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 56.0.2924.79  Channel: stable
OS Version: 10.2.1
Flash Version: 

You will not see this issue if you open the page https://videotest.neocities.org/test1.html in Safari and refresh it for a number of times. 

You can use this URL https://videotest.neocities.org/test2.html for comparison in Chrome. Since no language is specified the page it will not trigger the Google Translate. Refresh this page any number of times will not freeze the video playing.

 

Comment 1 by lawre...@newbit.io, Mar 3 2017

The issue is easier to reproduce on iPhone 6. On iPhone 7 it needs more refreshes and eventually the video playing freezes too.
Status: Available (was: Unconfirmed)
Issue can be reproduced test on the build 56.0.2924.79 stable 57.0.2987.88 dev tested on iPhone7+(iOS 10).
Video freezes and never plays on closing the translate pop up and refreshing the page.

Video :
https://drive.google.com/a/google.com/file/d/0B--UpU2GW2EpR0t0d2I1bTNnbzQ/view?usp=sharing
Components: UI>Browser>Translate
I tested it on stable after disabling translations on the site (By clicking on 'Never translate this site') and the video still won't play. Could this be an autoplay issue and have nothing to do with translate?
Cc: mard...@chromium.org
Components: -UI>Browser>Translate
Adding mardini@ for triage to the write iOS team.
Cc: pmadalla@chromium.org
Status: Untriaged (was: Available)
Hi Pramod,

Could you please verify if this is reproducible when translate is disabled?

Comment 7 by sczs@chromium.org, Apr 5 2017

Cc: -pmadalla@chromium.org liaoyuke@chromium.org
Labels: Needs-Feedback
Owner: pmadalla@chromium.org
Status: Assigned (was: Untriaged)
Labels: -Needs-Feedback
Verified the issue on 57.0.2987.137 tested on iPhone7+ iOS 10.3.
Video plays fine with any frame rate issues or freeze on disabling translate from settings.
Components: UI>Browser>Translate
Labels: Hotlist-TranslateiOS
Owner: ----
Status: Available (was: Assigned)
Components: -UI>Browser>Translate UI>Browser>Language>Translate
Owner: pkl@chromium.org
Status: Assigned (was: Available)
Labels: -Pri-2 Pri-3
Owner: ramyasharma@chromium.org
Owner: martiw@chromium.org
Cc: ramyasharma@chromium.org jif@chromium.org
Owner: jif@chromium.org
It seems it is the infobar base class (or infobar container) which causes this bug.

I could reproduce this bug with a "save password" infobar. 
Steps:

1. Visit http://martiwong.com/t/form.html
   The page contains an auto playing video and a login/password form.

2. Type anything on the login and password field then click on submit.
   the page will be reloaded.

3. A infobar will pop up asking "Do you want to save password".
   click on the "cross" to close the infobar (don't click on "save" or "never")

repeat step 2, 3 and the video will be freezed.
(in iphone6 iOS 9.3.5, I need to repeat 10~12 times)

If I didn't type any thing at login/password at step 2, no infobar will show up.
And the bug will not happen even I repeat step2,3 for >40 times.

I suspect the creating or releasing (or showing/hiding) of the infobar causing this bug.

Summary: Infobar on iOS Chrome freezes inline video playing on webpage (was: Google translate on iOS Chrome freezes inline video playing on webpage)
Hi jif@,

It seems this is a bug of infobar or infobar_container.
Would you look into this or assign it to the best person.

Thanks!

Comment 18 by jif@chromium.org, Jun 12 2017

Components: -UI>Browser>Language>Translate UI>Browser>Infobars
Status: Started (was: Assigned)

Comment 19 by jif@chromium.org, Jun 12 2017

I thought it could have been a UIView lingering in the view hierarchy, but diffing the output of "po [[UIWindow keyWindow] recursiveDescription]" before and after the infobars appeared revealed no difference.

I did find a leak of a bunch of infobar objects (  crbug.com/732384  ), but fixing that leak does not fix this bug.

On an iPhone 6, after a couple (~3) page reloads the video's playback FPS drops.
After one additional page reload, the video playback actually stops.
I thought that maybe we were doing more and more work, but profiling does not reveal anything (see attached screenshot, second reload is at 1 min).
Maybe the profiling does not log what is happening in the WKWebView; I'll try logging what we run in there.
Screen Shot 2017-06-12 at 18.32.01.png
52.3 KB View Download

Comment 20 by jif@chromium.org, Jun 13 2017

Took a look at what we were injecting in the WKWebview, and used at the (very minimalist) Safari Webview inspector, but did not find anything out of the ordinary.

Will now remove functionalities of the infobars one by one until I find what exactly is causing the slow down.

Comment 21 by jif@chromium.org, Jun 13 2017

Labels: -Pri-3 ReleaseBlock-Stable M-60 Pri-1
This bug is actually impacting all video playback, marking as RBS M60/P1.

Steps to reproduce:
-load http://foo.jp. A translate infobar will show up.
-refresh the page a couple of times without dismissing the infobar.
-visit youtube.com and try to play a video. The video will appear to not play.

Comment 22 by jif@chromium.org, Jun 13 2017

Has been occurring since (at least) M57.

Labels: -ReleaseBlock-Stable
Removing RBS as this issue has been present for several releases, but still a P1.
Cc: linds...@chromium.org
Components: Mobile>WebView>Glue
Labels: -M-60 -Hotlist-TranslateiOS M-62
Cc: pinkerton@chromium.org eugene...@chromium.org srikanthg@chromium.org sdefresne@chromium.org olivierrobin@chromium.org
 Issue 761750  has been merged into this issue.
Hi,
This is listed as a P1 for M62. Are there any updates for this?
Thanks,

Comment 27 by jif@chromium.org, Oct 18 2017

I investigated, but failed to find any source of the problem.
Labels: -Pri-1 Pri-2
Ok, marking as a P2 for going forward. Feel free to change prio if desired.

Also Jif if you aren't actively working on it anymore feel free to mark as just assigned to you or you can remove it from your queue and just change it to Available.

Comment 29 by jif@chromium.org, Oct 20 2017

Status: Available (was: Started)
Owner: ----
Status: Untriaged (was: Available)
jif@ is no longer on team. Marking Untraiged so it will be re-assigned.
Owner: gch...@chromium.org
Status: Assigned (was: Untriaged)
Looks like gchatz@ is the new Infobars owner
Cc: gch...@chromium.org
Owner: pkl@chromium.org
Not going to have time to look at this. Assigning to pkl@ for retriage. 

Comment 33 by pkl@chromium.org, Apr 12 2018

Cc: -ramyasharma@chromium.org -gch...@chromium.org -jif@chromium.org
Labels: -Pri-2 -M-62 Pri-3
Owner: ----
Status: Available (was: Assigned)
srikanthg: Low priority, but can you verify to see if this is still an issue with M65 from App Store?
Labels: Needs-Feedback
Whoever on tester team has bandwidth to get to this first is a-ok, thanks!
Components: Mobile>iOSWeb
Components: -Mobile>WebView>Glue
Components: -Mobile>iOSWeb Mobile>iOSWeb>Media

Sign in to add a comment