Bug 27222. Make sure that we grab aListener and stuff it into mObserver, so that parser observers work. r=harishd, a=jevering

git-svn-id: svn://10.0.0.236/trunk@62286 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com
2000-03-07 02:35:20 +00:00
parent 160a979d59
commit 9d5206017d
2 changed files with 4 additions and 0 deletions

View File

@@ -856,6 +856,8 @@ nsresult nsParser::Parse(nsIURI* aURL,nsIStreamObserver* aListener,PRBool aVerif
NS_PRECONDITION(0!=aURL,kNullURL);
nsresult result=kBadURL;
mObserver = aListener;
NS_IF_ADDREF(mObserver);
mDTDVerification=aVerifyEnabled;
if(aURL) {
char* spec;