[Fullscreen] Exit fullscreen when opening a new tab
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Jun 2018 20:24:55 +0000 (20:24 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Jun 2018 20:24:55 +0000 (20:24 +0000)
commit0fd25e25d5aa4905a6386d89852e696fbbac0ad2
tree2dfeb9e28186a5584fa21dc50355c21707d7ff54
parentb9ac1a89a662db0dc09a5376ecbc197130bfc368
[Fullscreen] Exit fullscreen when opening a new tab
https://bugs.webkit.org/show_bug.cgi?id=186826
<rdar://problem/40853211>

Reviewed by Brent Fulgham.

Make the fullscreen placeholder view a custom UIView, and exit fullscreen when the
placeholder is removed from its superview.

* UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:
(-[WKFullScreenPlaceholderView willMoveToSuperview:]):
(-[WKFullScreenWindowController enterFullScreen]):
(-[WKFullScreenWindowController _completedExitFullScreen]):
(-[WKFullScreenWindowController placeholderWillMoveToSuperview:]):
(-[WKFullScreenWindowController _exitFullscreenImmediately]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233095 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm