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

This commit is contained in:
waterson%netscape.com 2000-03-07 02:35:20 +00:00
parent 7b0457913d
commit 766cb853f8
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;

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;