* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _closeAllMediaPresentations]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246947
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2019-06-28 Ryan Haddad <ryanhaddad@apple.com>
+
+ Unreviewed build fix attempt after r246928.
+
+ * UIProcess/API/Cocoa/WKWebView.mm:
+ (-[WKWebView _closeAllMediaPresentations]):
+
2019-06-28 Youenn Fablet <youenn@apple.com>
Protect NetworkProcess::m_swServers from bad session IDs
- (void)_closeAllMediaPresentations
{
+#if ENABLE(FULLSCREEN_API)
if (auto videoFullscreenManager = _page->videoFullscreenManager()) {
videoFullscreenManager->forEachSession([] (auto& model, auto& interface) {
model.requestFullscreenMode(WebCore::HTMLMediaElementEnums::VideoFullscreenModeNone);
});
}
-#if ENABLE(FULLSCREEN_API)
if (auto fullScreenManager = _page->fullScreenManager(); fullScreenManager && fullScreenManager->isFullScreen())
fullScreenManager->close();
#endif