зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
0413d7071d
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче