Changed Notify() to call NotifyError() if the notification type is
nsImageNotification_kAborted. This ensures that the NS_IMAGE_LOAD_STATUS_ERROR load status bit is set and that the frame gets repainted
This commit is contained in:
@@ -250,8 +250,8 @@ nsFrameImageLoader::Notify(nsIImageRequest *aImageRequest,
|
||||
break;
|
||||
|
||||
case nsImageNotification_kAborted:
|
||||
// Update the image load status
|
||||
mImageLoadStatus |= NS_IMAGE_LOAD_STATUS_ERROR;
|
||||
// Treat this like an error
|
||||
NotifyError(aImageRequest, nsImageError_kNoData);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user