mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
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
This commit is contained in:
parent
506fdf23b9
commit
dec3bea943
@ -302,6 +302,7 @@ SVGDocumentWrapper::OnStopRequest(nsIRequest* aRequest, nsISupports* ctxt,
|
||||
// up to this promise.
|
||||
nsCOMPtr<nsIParser> parser = do_QueryInterface(mListener);
|
||||
while (!parser->IsComplete()) {
|
||||
parser->CancelParsingEvents();
|
||||
parser->ContinueInterruptedParsing();
|
||||
}
|
||||
FlushLayout();
|
||||
|
Loading…
Reference in New Issue
Block a user