dispatchViewStateChange should not wait for sync reply if the page isn't visible
authorbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 May 2015 02:36:28 +0000 (02:36 +0000)
committerbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 May 2015 02:36:28 +0000 (02:36 +0000)
commite2db1c9edf8d3f98bc40dd777c55e27743f67327
tree035a5b654756e16df845f797bcc80e2a91a3ed6d
parent4266a98761d1577c3a01ca48b0d70a8f1d9e1811
dispatchViewStateChange should not wait for sync reply if the page isn't visible
https://bugs.webkit.org/show_bug.cgi?id=145242
<rdar://problem/20967937>

Reviewed by Ben Poulain.

This is particularly problematic on iOS, since if the page isn't visible the process is likely suspended.

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::dispatchViewStateChange):
(WebKit::WebPageProxy::waitForDidUpdateViewState):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/WebPageProxy.cpp