Bug 820971: Ignore the ref when checking to see if the image URI is the document URI. r=bz

--HG--
extra : rebase_source : 021930620f62745a946e9f6e774c20e89e1784f7
This commit is contained in:
Kyle Huey 2012-12-14 08:15:26 -08:00
Родитель 45b4ea581a
Коммит 1a22065d73
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -558,7 +558,7 @@ nsImageLoadingContent::LoadImage(const nsAString& aNewURI,
if (aNewURI.IsEmpty() &&
doc->GetDocumentURI() &&
NS_SUCCEEDED(doc->GetDocumentURI()->Equals(imageURI, &equal)) &&
NS_SUCCEEDED(doc->GetDocumentURI()->EqualsExceptRef(imageURI, &equal)) &&
equal) {
// Loading an embedded img from the same URI as the document URI will not work