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. git-svn-id: svn://10.0.0.236/trunk@63381 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user