Bug 214032

Summary: Function didCleanupFullscreencreen() should be called at the end of VideoFullscreenInterfaceAVKit::cleanupFullscreen()
Product: WebKit Reporter: Peng Liu <peng.liu6>
Component: MediaAssignee: Peng Liu <peng.liu6>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Peng Liu 2020-07-06 21:06:04 PDT
Function didCleanupFullscreencreen() should be called at the end of VideoFullscreenInterfaceAVKit::cleanupFullscreen()
Comment 1 Peng Liu 2020-07-06 21:08:36 PDT
<rdar://problem/65041486>
Comment 2 Peng Liu 2020-07-06 21:12:38 PDT
Created attachment 403663 [details]
Patch
Comment 3 Eric Carlson 2020-07-07 09:46:29 PDT
Comment on attachment 403663 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=403663&action=review

> Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm:987
>      [playerController() setHasEnabledVideo:false];
>      [playerController() setHasVideo:false];

Doesn't seem like we should have to call both of these, shouldn't setting `hasVideo` to false automatically set `hasEnabledVideo` to false? Not new to this patch, but it would be good to change this in a future cleanup.
Comment 4 Peng Liu 2020-07-07 10:50:39 PDT
Comment on attachment 403663 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=403663&action=review

>> Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm:987
>>      [playerController() setHasVideo:false];
> 
> Doesn't seem like we should have to call both of these, shouldn't setting `hasVideo` to false automatically set `hasEnabledVideo` to false? Not new to this patch, but it would be good to change this in a future cleanup.

Right! We need to update WebAVPlayerController to do that.
Comment 5 EWS 2020-07-07 11:03:20 PDT
Committed r264030: <https://trac.webkit.org/changeset/264030>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 403663 [details].