[Webkit-unassigned] [Bug 207256] visibilitychange event does not get always fired on background but it may on foreground

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 5 09:43:11 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=207256

--- Comment #2 from Alexander Cerutti <cerutti.alexander at gmail.com> ---
I've found a way to reproduce almost-steadly the problem while using sleep button.
With the sample that I'm attaching, which is a normal video tag with a `visibilitychange` event attached on document, I've tried to lock and unlock the iPad with iOS 12, different times.

The video was playing before this happened. Some unlocks (may vary from 3 to 5 or more), the video didn't came back to playing automatically and the `visibilitychanged` event started being fired only on foreground.
This situation can persist for some other lock-unlock actions but it will recover somehow and then can fall back in this again.

I don't know how this can be related or linked under the hood, but seems the only almost-steady way I found to reproduce this problem.

Instead, I didn't found yet a way to reproduce the problem that happens when home button is pressed.
Anyway, if the player is paused after unlock, pressing home button still fires the event `visibilitychanged`.
I think that they might be two different but related problems.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200205/1178fd1b/attachment.htm>


More information about the webkit-unassigned mailing list