зеркало из https://github.com/mozilla/gecko-dev.git
Fix for a crasher. Opening <BODY> in DidBuildModel()
for documents that that don't have an open <BODY> or <FRAMESET>. R=rickg A=chofmann
This commit is contained in:
Родитель
029d152e48
Коммит
26480fa653
|
@ -525,16 +525,10 @@ nsresult CNavDTD::BuildModel(nsIParser* aParser,nsITokenizer* aTokenizer,nsIToke
|
|||
nsresult CNavDTD::DidBuildModel(nsresult anErrorCode,PRBool aNotifySink,nsIParser* aParser,nsIContentSink* aSink){
|
||||
nsresult result= NS_OK;
|
||||
|
||||
/*
|
||||
if((NS_OK==anErrorCode) && (!mHadBodyOrFrameset)) {
|
||||
CStartToken theToken(eHTMLTag_body); //open the body container...
|
||||
result=HandleStartToken(&theToken);
|
||||
|
||||
if(NS_SUCCEEDED(result)) {
|
||||
result=BuildModel(aParser,mTokenizer,0,aSink);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
if(aParser){
|
||||
mSink=(nsIHTMLContentSink*)aSink;
|
||||
|
|
|
@ -525,16 +525,10 @@ nsresult CNavDTD::BuildModel(nsIParser* aParser,nsITokenizer* aTokenizer,nsIToke
|
|||
nsresult CNavDTD::DidBuildModel(nsresult anErrorCode,PRBool aNotifySink,nsIParser* aParser,nsIContentSink* aSink){
|
||||
nsresult result= NS_OK;
|
||||
|
||||
/*
|
||||
if((NS_OK==anErrorCode) && (!mHadBodyOrFrameset)) {
|
||||
CStartToken theToken(eHTMLTag_body); //open the body container...
|
||||
result=HandleStartToken(&theToken);
|
||||
|
||||
if(NS_SUCCEEDED(result)) {
|
||||
result=BuildModel(aParser,mTokenizer,0,aSink);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
if(aParser){
|
||||
mSink=(nsIHTMLContentSink*)aSink;
|
||||
|
|
Загрузка…
Ссылка в новой задаче