RESOLVED FIXED 218688
Receiving two enter/exit fullscreen delegate callbacks on iPad when presenting fullscreen elements
https://bugs.webkit.org/show_bug.cgi?id=218688
Summary Receiving two enter/exit fullscreen delegate callbacks on iPad when presentin...
Peng Liu
Reported 2020-11-07 11:41:20 PST
Receiving two enter/exit fullscreen delegate callbacks on iPad when presenting fullscreen elements
Attachments
WIP patch (need an API test) (5.08 KB, patch)
2020-11-07 11:49 PST, Peng Liu
no flags
WIP patch (need an API test) (5.83 KB, patch)
2020-11-07 19:02 PST, Peng Liu
darin: review+
Patch for landing (5.77 KB, patch)
2021-01-11 15:35 PST, Peng Liu
no flags
Peng Liu
Comment 1 2020-11-07 11:42:21 PST
Peng Liu
Comment 2 2020-11-07 11:49:45 PST
Created attachment 413531 [details] WIP patch (need an API test)
Peng Liu
Comment 3 2020-11-07 19:02:05 PST
Created attachment 413537 [details] WIP patch (need an API test)
Peng Liu
Comment 4 2021-01-11 14:01:28 PST
Just realized that I need to fix bug 212654 before adding a test for this patch.
Darin Adler
Comment 5 2021-01-11 14:42:44 PST
Comment on attachment 413537 [details] WIP patch (need an API test) View in context: https://bugs.webkit.org/attachment.cgi?id=413537&action=review > Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm:936 > + if (mode == HTMLMediaElementEnums::VideoFullscreenModeNone && standby) > + m_changingStandbyOnly = true; > + else > + m_changingStandbyOnly = false; m_changingStandbyOnly = mode == HTMLMediaElementEnums::VideoFullscreenModeNone && standby; > Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm:972 > + if (!m_currentMode.hasVideo() && m_standby) > + m_changingStandbyOnly = true; > + else > + m_changingStandbyOnly = false; m_changingStandbyOnly = !m_currentMode.hasVideo() && m_standby;
Peng Liu
Comment 6 2021-01-11 15:35:29 PST
Created attachment 417415 [details] Patch for landing
Peng Liu
Comment 7 2021-01-11 15:36:52 PST
Comment on attachment 413537 [details] WIP patch (need an API test) View in context: https://bugs.webkit.org/attachment.cgi?id=413537&action=review >> Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm:936 >> + m_changingStandbyOnly = false; > > m_changingStandbyOnly = mode == HTMLMediaElementEnums::VideoFullscreenModeNone && standby; Good idea! Fixed. >> Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm:972 >> + m_changingStandbyOnly = false; > > m_changingStandbyOnly = !m_currentMode.hasVideo() && m_standby; Fixed.
EWS
Comment 8 2021-01-11 17:11:42 PST
Committed r271387: <https://trac.webkit.org/changeset/271387> All reviewed patches have been landed. Closing bug and clearing flags on attachment 417415 [details].
Note You need to log in before you can comment on or make changes to this bug.