Bug 203443

Summary: The m_videoFullscreenMode attribute of HTMLMediaElement does not always store the real presentation mode of the video element
Product: WebKit Reporter: Peng Liu <peng.liu6>
Component: MediaAssignee: Peng Liu <peng.liu6>
Status: NEW    
Severity: Normal CC: eric.carlson, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 12   
Hardware: Unspecified   
OS: Unspecified   

Peng Liu
Reported 2019-10-25 20:19:23 PDT
Presentation mode change is a multiple-steps process, and the web content process and UI process need to exchange messages multiple times to guarantee the state transition is completed. The implementation of HTMLMediaElement does not consider the asynchronous process to complete the mode change. For example, it sets the m_videoFullscreenMode to be picture-in-picture before the transition from inline to picture-in-picture is completed. In addition, the timing of presentation mode change related callbacks need to be reviewed and changed is necessary.
Attachments
Peng Liu
Comment 1 2019-10-25 20:22:15 PDT
I mean: "if necessary".
Radar WebKit Bug Importer
Comment 2 2019-11-14 18:55:08 PST
Note You need to log in before you can comment on or make changes to this bug.