mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
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:
parent
7b0457913d
commit
766cb853f8
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user