Sometimes WKWebView is blank after resuming the app, until you scroll
[WebKit-https.git] / Source / WebKit2 / UIProcess / WebPageProxy.cpp
index 65f7ac6f1936ee411f7f57919d19ed38a3c90adb..426e70520c8714da9e3516f306f5b85631851e5e 100644 (file)
@@ -1188,7 +1188,7 @@ void WebPageProxy::dispatchViewStateChange()
     if (m_viewWasEverInWindow && (changed & ViewState::IsInWindow) && isInWindow())
         m_viewStateChangeWantsReply = true;
 
-    if (changed)
+    if (changed || m_viewStateChangeWantsReply)
         m_process->send(Messages::WebPage::SetViewState(m_viewState, m_viewStateChangeWantsReply), m_pageID);
 
     // This must happen after the SetViewState message is sent, to ensure the page visibility event can fire.