| Index: Source/core/loader/ImageLoader.cpp
|
| diff --git a/Source/core/loader/ImageLoader.cpp b/Source/core/loader/ImageLoader.cpp
|
| index a8177ba48d59bf7fe79cc7d41c22cdbe68588f9c..8659c5ad118de1f2e5344eb2615a7ea8b9740f65 100644
|
| --- a/Source/core/loader/ImageLoader.cpp
|
| +++ b/Source/core/loader/ImageLoader.cpp
|
| @@ -291,7 +291,18 @@ void ImageLoader::notifyFinished(Resource* resource)
|
| updatedHasPendingEvent();
|
| return;
|
| }
|
| + if (resource->errorOccurred()) {
|
| + loadEventSender().cancelEvent(this);
|
| + m_hasPendingLoadEvent = false;
|
| +
|
| + m_hasPendingErrorEvent = true;
|
| + errorEventSender().dispatchEventSoon(this);
|
|
|
| + // Only consider updating the protection ref-count of the Element immediately before returning
|
| + // from this function as doing so might result in the destruction of this ImageLoader.
|
| + updatedHasPendingEvent();
|
| + return;
|
| + }
|
| loadEventSender().dispatchEventSoon(this);
|
| }
|
|
|
|
|