Prevent throttling while resources are being loaded
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Jun 2013 01:21:45 +0000 (01:21 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Jun 2013 01:21:45 +0000 (01:21 +0000)
commit2d64f03c413912621ba97095112b63e9548ca7ac
tree4ee6d81ded0faecdcf277c59aecc9093d1d5e1f0
parent2cbfc42f835a147b5c2ae192f62e10ff79c88dbb
Prevent throttling while resources are being loaded
https://bugs.webkit.org/show_bug.cgi?id=117218

Reviewed by Gavin Barraclough.

Make use of the page activity assertion infrastructure to delay
throttling while we are waiting on resource loads.

* loader/FrameLoader.cpp:
(WebCore::FrameLoader::completed):
(WebCore::FrameLoader::started):
* loader/FrameLoader.h:
* loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::init):
(WebCore::SubresourceLoader::checkForHTTPStatusCodeError):
(WebCore::SubresourceLoader::didFinishLoading):
(WebCore::SubresourceLoader::didFail):
(WebCore::SubresourceLoader::willCancel):
* loader/SubresourceLoader.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@151193 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/loader/FrameLoader.cpp
Source/WebCore/loader/FrameLoader.h
Source/WebCore/loader/SubresourceLoader.cpp
Source/WebCore/loader/SubresourceLoader.h