From dec3bea9430b7d91f9dd5d519ea0e213998b809f Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Fri, 14 Oct 2011 11:19:18 -0700 Subject: [PATCH] Bug 694165: After receiving final data for SVG-as-an-image, when we synchronously finish parsing, cancel any continue events that the parser posts. r=hsivonen --- modules/libpr0n/src/SVGDocumentWrapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/libpr0n/src/SVGDocumentWrapper.cpp b/modules/libpr0n/src/SVGDocumentWrapper.cpp index aca0f0e99ce1..fbf21eaf4d14 100644 --- a/modules/libpr0n/src/SVGDocumentWrapper.cpp +++ b/modules/libpr0n/src/SVGDocumentWrapper.cpp @@ -302,6 +302,7 @@ SVGDocumentWrapper::OnStopRequest(nsIRequest* aRequest, nsISupports* ctxt, // up to this promise. nsCOMPtr parser = do_QueryInterface(mListener); while (!parser->IsComplete()) { + parser->CancelParsingEvents(); parser->ContinueInterruptedParsing(); } FlushLayout();