-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=42029 Reviewed by Oliver Hunt. * Shared/CoreIPCSupport/WebPageMessageKinds.h: (WebPageMessage::): Add SetIsInWindow. * UIProcess/API/mac/WKView.mm: (-[WKView initWithFrame:pageNamespaceRef:]): Call setIsInWindow. (-[WKView _updateVisibility]): Call setIsInWindow. * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::WebPageProxy): Initialize m_isInWindow. (WebKit::WebPageProxy::setIsInWindow): Send WebPageMessage::SetIsInWindow. * UIProcess/WebPageProxy.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::setIsInWindow): Call Page::canStartMedia. (WebKit::WebPage::didReceiveMessage): Handle the SetIsInWindow message. * WebProcess/WebPage/WebPage.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
4ced5a03