Commit c4c99be1 authored by andersca@apple.com's avatar andersca@apple.com

Address review comment by Dan Bernstein.

* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::substituteResourceDeliveryTimerFired):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86398 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 36727c6f
2011-05-12 Anders Carlsson <andersca@apple.com>
Address review comment by Dan Bernstein.
* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::substituteResourceDeliveryTimerFired):
2011-05-12 Anders Carlsson <andersca@apple.com>
Reviewed by Dan Bernstein.
......@@ -595,9 +595,10 @@ void DocumentLoader::substituteResourceDeliveryTimerFired(Timer<DocumentLoader>*
if (loader->reachedTerminalState())
return;
loader->didReceiveData(data->data(), data->size(), data->size(), true);
// Calling ResourceLoader::didReceiveData can end up cancelling the load,
// so we need to check if the loader has reached its terminal state.
loader->didReceiveData(data->data(), data->size(), data->size(), true);
if (loader->reachedTerminalState())
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment