From fab81b0afb13ca9a2d1cb79370dbad3820cc7288 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Sat, 30 Sep 2006 01:53:47 +0000 Subject: [PATCH] Null out mListenerManager before we call ResetToURI and restore it, so ResetToURI doesn't Disconnect it. b=354865 r+sr=bzbarsky --- content/xml/document/src/nsXMLDocument.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/content/xml/document/src/nsXMLDocument.cpp b/content/xml/document/src/nsXMLDocument.cpp index 12d907d5270..b3ef892d03c 100644 --- a/content/xml/document/src/nsXMLDocument.cpp +++ b/content/xml/document/src/nsXMLDocument.cpp @@ -421,6 +421,7 @@ nsXMLDocument::Load(const nsAString& aUrl, PRBool *aReturn) // be loaded. nsCOMPtr principal = NodePrincipal(); nsCOMPtr elm(mListenerManager); + mListenerManager = nsnull; ResetToURI(uri, nsnull);