mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Fix for 32263
Create a new instance of the DTD when called by the JS engine ( only when creating a new parser context ). r=rickg.
This commit is contained in:
parent
0413d7071d
commit
6c8c90c444
@ -958,14 +958,13 @@ aContentType,PRBool aVerifyEnabled,PRBool aLastCall,eParseMode aMode){
|
||||
eAutoDetectResult theStatus=eUnknownDetect;
|
||||
|
||||
if(mParserContext && (mParserContext->mSourceType==aContentType)) {
|
||||
theDTD=mParserContext->mDTD;
|
||||
mParserContext->mDTD->CreateNewInstance(&theDTD); // To fix bug 32263
|
||||
theStatus=mParserContext->mAutoDetectStatus;
|
||||
|
||||
//added this to fix bug 32022.
|
||||
}
|
||||
|
||||
pc=new CParserContext(theScanner,aKey, 0,theDTD,theStatus,aLastCall);
|
||||
|
||||
|
||||
if(pc && theScanner) {
|
||||
PushContext(*pc);
|
||||
|
@ -958,14 +958,13 @@ aContentType,PRBool aVerifyEnabled,PRBool aLastCall,eParseMode aMode){
|
||||
eAutoDetectResult theStatus=eUnknownDetect;
|
||||
|
||||
if(mParserContext && (mParserContext->mSourceType==aContentType)) {
|
||||
theDTD=mParserContext->mDTD;
|
||||
mParserContext->mDTD->CreateNewInstance(&theDTD); // To fix bug 32263
|
||||
theStatus=mParserContext->mAutoDetectStatus;
|
||||
|
||||
//added this to fix bug 32022.
|
||||
}
|
||||
|
||||
pc=new CParserContext(theScanner,aKey, 0,theDTD,theStatus,aLastCall);
|
||||
|
||||
|
||||
if(pc && theScanner) {
|
||||
PushContext(*pc);
|
||||
|
Loading…
Reference in New Issue
Block a user