Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[iOS] No media controls after restoring fullscreen from PiP
https://bugs.webkit.org/show_bug.cgi?id=248834 rdar://102880747 Reviewed by Eric Carlson and Jean-Yves Avenard. When attempting to "restore" fullscreen mode from PiP, WebFullScreenManager uses the m_element ivar to decide which element to request element fullscreen. However in 256812@main, m_element is cleared upon exit. Restore the functionality by introducing a new ivar, m_elementToRestore. This WeakPtr will be queried when requesting fullscreen and, if valid, will be used instead of m_element. To make it more clear that we are requesting fullscreen mode be restored, rename all instances of requestEnterFullScreen to requestRestoreFullScreen. Add a XCUITest that exercises entering video fullscreen, entering PiP, and restoring to fullscreen twice. * Source/WebKit/UIProcess/WebFullScreenManagerProxy.cpp: (WebKit::WebFullScreenManagerProxy::requestRestoreFullScreen): (WebKit::WebFullScreenManagerProxy::requestEnterFullScreen): Deleted. * Source/WebKit/UIProcess/WebFullScreenManagerProxy.h: * Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.h: * Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm: (-[WKFullScreenWindowController requestRestoreFullScreen]): (-[WKFullScreenWindowController _completedExitFullScreen]): (-[WKFullScreenWindowController didExitPictureInPicture]): (-[WKFullScreenWindowController requestEnterFullScreen]): Deleted. * Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp: (WebKit::WebFullScreenManager::setElement): (WebKit::WebFullScreenManager::requestRestoreFullScreen): (WebKit::WebFullScreenManager::requestEnterFullScreen): Deleted. * Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.h: * Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.messages.in: * Tools/MobileMiniBrowser/MobileMiniBrowser.xcodeproj/project.pbxproj: * Tools/MobileMiniBrowser/MobileMiniBrowser.xcodeproj/xcshareddata/xcschemes/MobileMiniBrowser.xcscheme: * Tools/MobileMiniBrowser/MobileMiniBrowserFramework/Assets.xcassets/AppIcon.appiconset/Contents.json: * Tools/MobileMiniBrowser/MobileMiniBrowserFramework/WebViewController.m: (-[WebViewController createWebView]): (-[WebViewController targetURLorDefaultURL]): * Tools/MobileMiniBrowser/MobileMiniBrowserUITests/MobileMiniBrowserUITests.m: (-[MobileMiniBrowserUITests setUp]): (-[MobileMiniBrowserUITests waitForWindowNamed:forApp:]): (-[MobileMiniBrowserUITests waitForOtherElementNamed:forApp:]): (-[MobileMiniBrowserUITests tapMiddleTopOfApp:]): (-[MobileMiniBrowserUITests launchURL:]): (-[MobileMiniBrowserUITests launchPageNamed:]): (-[MobileMiniBrowserUITests testBasicVideoPlayback]): (-[MobileMiniBrowserUITests testBasicVideoFullscreen]): (-[MobileMiniBrowserUITests testRepeatedFullScreenToPiPAndBack]): (-[MobileMiniBrowserUITests testVideoFullscreenAndRotationAnimation]): (-[MobileMiniBrowserUITests testVideoFullscreenControlCenter]): (-[MobileMiniBrowserUITests testLoopingFullscreenLockup]): Canonical link: https://commits.webkit.org/257486@main
- Loading branch information
Showing
13 changed files
with
180 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.