From 5e69c0e50385cb33d327148bfef85a2d1def7391 Mon Sep 17 00:00:00 2001 From: "pete%alphanumerica.com" Date: Tue, 19 Aug 2003 13:52:41 +0000 Subject: [PATCH] backing out changes. It is breaking Camino b=216646 --pete git-svn-id: svn://10.0.0.236/trunk@146192 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/xml/document/src/nsXMLDocument.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/mozilla/content/xml/document/src/nsXMLDocument.cpp b/mozilla/content/xml/document/src/nsXMLDocument.cpp index 3218780cfd5..7c5e93b5971 100644 --- a/mozilla/content/xml/document/src/nsXMLDocument.cpp +++ b/mozilla/content/xml/document/src/nsXMLDocument.cpp @@ -659,7 +659,6 @@ nsXMLDocument::StartDocumentLoad(const char* aCommand, NS_ENSURE_SUCCESS(rv, rv); nsCOMPtr sink; - PRBool hasDocShell(PR_TRUE); if (aSink) { sink = do_QueryInterface(aSink); @@ -670,9 +669,6 @@ nsXMLDocument::StartDocumentLoad(const char* aCommand, docShell = do_QueryInterface(aContainer); NS_ENSURE_TRUE(docShell, NS_ERROR_FAILURE); } - - if (!docShell) - hasDocShell = PR_FALSE; rv = NS_NewXMLContentSink(getter_AddRefs(sink), this, aUrl, docShell, aChannel); NS_ENSURE_SUCCESS(rv, rv); @@ -685,11 +681,7 @@ nsXMLDocument::StartDocumentLoad(const char* aCommand, SetDocumentCharacterSet(charset); parser->SetDocumentCharset(charset, charsetSource); parser->SetCommand(aCommand); - // XXX This is a fix for bug #206947 - // Handing the sink to the parser when there is - // no docshell causes rampant leaks --pete - if (hasDocShell) - parser->SetContentSink(sink); + parser->SetContentSink(sink); parser->Parse(aUrl, nsnull, PR_FALSE, (void *)this); return NS_OK;