diff --git a/content/base/src/nsImageLoadingContent.cpp b/content/base/src/nsImageLoadingContent.cpp index 423b6f851f1..a4b5ed9159e 100644 --- a/content/base/src/nsImageLoadingContent.cpp +++ b/content/base/src/nsImageLoadingContent.cpp @@ -641,7 +641,6 @@ nsImageLoadingContent::LoadImage(const nsAString& aNewURI, doc->GetDocumentURI() && NS_SUCCEEDED(doc->GetDocumentURI()->Equals(imageURI, &equal)) && equal) { - // Loading an embedded img from the same URI as the document URI will not work // as a resource cannot recursively embed itself. Attempting to do so generally // results in having to pre-emptively close down an in-flight HTTP transaction @@ -650,6 +649,7 @@ nsImageLoadingContent::LoadImage(const nsAString& aNewURI, // In light of that, just skip loading it.. // Do make sure to drop our existing image, if any CancelImageRequests(aNotify); + FireEvent(NS_LITERAL_STRING("error")); return NS_OK; } diff --git a/content/html/content/test/Makefile.in b/content/html/content/test/Makefile.in index 211e818bed0..dcd3eee60d1 100644 --- a/content/html/content/test/Makefile.in +++ b/content/html/content/test/Makefile.in @@ -236,6 +236,7 @@ _TEST_FILES = \ test_bug607145.html \ test_bug601061.html \ test_bug596511.html \ + test_bug599975.html \ reflect.js \ test_bug611189.html \ test_bug613113.html \ diff --git a/content/html/content/test/test_bug599975.html b/content/html/content/test/test_bug599975.html new file mode 100644 index 00000000000..61dcc163bde --- /dev/null +++ b/content/html/content/test/test_bug599975.html @@ -0,0 +1,35 @@ + + + + + Test for Bug 599975 + + + + + +Mozilla Bug 599975 +

+ +
+
+
+ +