Bug 236642

Summary: Placeholder image blinks on exiting picture in picture presentation mode
Product: WebKit Reporter: Cyril CAMBOURNAC <cyril.cambournac>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: jer.noble, peng.liu6, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: iPhone / iPad   
OS: iOS 15   
Attachments:
Description Flags
Video capture showing the codepen example none

Description Cyril CAMBOURNAC 2022-02-15 05:30:08 PST
Created attachment 452012 [details]
Video capture showing the codepen example

When exiting picture-in-picture presentation mode, the picture-in-picture placeholder image blinks on top of the video.

Codepen to reproduce: https://codepen.io/ccambour/pen/mdqwOGM
Comment 1 Radar WebKit Bug Importer 2022-02-15 19:18:22 PST
<rdar://problem/89001694>
Comment 2 Peng Liu 2022-02-15 19:28:26 PST
Thanks for the bug report!
The root cause of this issue is that the "webkitpresentationmodechanged" event is fired after the exit picture-in-picture animation finishes. The media controls removes the placard in the event handler, so it is a little later than expected.