mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
Short circuit auto-detect logic (cuz it doesn't work here)
This commit is contained in:
parent
4f212010ad
commit
6451b37d44
@ -474,6 +474,8 @@ PRInt32 nsParser::Parse(fstream& aStream,PRBool aVerifyEnabled){
|
||||
CParserContext* pc=new CParserContext(new CScanner(kUnknownFilename,aStream,PR_FALSE),&aStream,0);
|
||||
PushContext(*pc);
|
||||
|
||||
pc->mSourceType="text/html";
|
||||
|
||||
mParserContext->mScanner->Eof();
|
||||
if(eValidDetect==AutoDetectContentType(mParserContext->mScanner->GetBuffer(),
|
||||
mParserContext->mSourceType)) {
|
||||
|
@ -474,6 +474,8 @@ PRInt32 nsParser::Parse(fstream& aStream,PRBool aVerifyEnabled){
|
||||
CParserContext* pc=new CParserContext(new CScanner(kUnknownFilename,aStream,PR_FALSE),&aStream,0);
|
||||
PushContext(*pc);
|
||||
|
||||
pc->mSourceType="text/html";
|
||||
|
||||
mParserContext->mScanner->Eof();
|
||||
if(eValidDetect==AutoDetectContentType(mParserContext->mScanner->GetBuffer(),
|
||||
mParserContext->mSourceType)) {
|
||||
|
Loading…
Reference in New Issue
Block a user