Index: Source/core/page/PageSerializer.cpp |
diff --git a/Source/core/page/PageSerializer.cpp b/Source/core/page/PageSerializer.cpp |
index 7f31c9c055639726f0477a0e03fa69a8af25ee07..c759769d5dfa1bc069a2c1f51b7ead4c424cf0fc 100644 |
--- a/Source/core/page/PageSerializer.cpp |
+++ b/Source/core/page/PageSerializer.cpp |
@@ -314,7 +314,7 @@ void PageSerializer::addImageToResources(ImageResource* image, RenderObject* ima |
if (!shouldAddURL(url)) |
return; |
- if (!image || image->image() == Image::nullImage()) |
+ if (!image || image->image() == Image::nullImage() || image->errorOccurred()) |
return; |
RefPtr<SharedBuffer> data = imageRenderer ? image->imageForRenderer(imageRenderer)->data() : 0; |