If our image was previously blocked and we're asked to maybe reload it, don't

check whether the URI changed; just try loading (since this time we may not be
blocked).  Bug 251354 followup, r=sicking, sr=shaver, a=chofmann
This commit is contained in:
bzbarsky%mit.edu 2005-04-11 16:37:27 +00:00
Родитель ea3bf5bae9
Коммит 67b8f9038a
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -414,7 +414,9 @@ nsImageLoadingContent::ImageURIChanged(const nsAString& aNewURI,
rv = StringToURI(aNewURI, doc, getter_AddRefs(imageURI));
NS_ENSURE_SUCCESS(rv, rv);
if (!aForce) {
// Skip the URI equality check if our current image was blocked. If
// that happened, we really do want to try loading again.
if (!aForce && NS_CP_ACCEPTED(mImageBlockingStatus)) {
nsCOMPtr<nsIURI> currentURI;
GetCurrentURI(getter_AddRefs(currentURI));
PRBool equal;