http/tests/xmlhttprequest/workers/methods.html sometimes times out with disk cache...
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Jan 2015 02:52:30 +0000 (02:52 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Jan 2015 02:52:30 +0000 (02:52 +0000)
commitdbfc72837dc174d6991bcfe2227aa1070bfe2556
tree4402622365236efa1159046ce99e19c7588489c4
parent1924f04f6220c498c14b962c348f60f2313940e2
http/tests/xmlhttprequest/workers/methods.html sometimes times out with disk cache enabled
https://bugs.webkit.org/show_bug.cgi?id=140976

Reviewed by Chris Dumez.

The previous fix sometimes invoked the completion handler twice. Explicitly track if we
have called it or not.

* NetworkProcess/cache/NetworkCacheStorageCocoa.mm:
(WebKit::NetworkCacheStorage::dispatchRetrieveOperation):

Also move the error case to the done branch. According to the documentation 'done' is always set on error.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@179327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/NetworkProcess/cache/NetworkCacheStorageCocoa.mm