Temporarily disable speculative parsing to see its effect on tinderbox crashiness. r+sr=jst
authorBlake Kaplan <mrbkap@gmail.com>
Mon, 06 Oct 2008 15:19:28 -0700
changeset 20095 04218932d5b7812d5f6dcbc7504d9891b0e5a5e1
parent 20094 ce56bc915463fb0fad704c6d3893a4ea1c7cd1a6
child 20096 fea5aa8c81afc9b4c65db2e2233fe134c6b79c7c
push idunknown
push userunknown
push dateunknown
milestone1.9.1b1pre
Temporarily disable speculative parsing to see its effect on tinderbox crashiness. r+sr=jst
parser/htmlparser/src/nsParser.cpp
--- a/parser/htmlparser/src/nsParser.cpp
+++ b/parser/htmlparser/src/nsParser.cpp
@@ -1533,32 +1533,34 @@ nsParser::DidBuildModel(nsresult anError
   }
 
   return result;
 }
 
 void
 nsParser::SpeculativelyParse()
 {
+#if 0 // Disable temporarily to see if this is the cause of the bustage.
   if (mParserContext->mParserCommand == eViewNormal &&
       !mParserContext->mMimeType.EqualsLiteral("text/html")) {
     return;
   }
 
   if (!mSpeculativeScriptThread) {
     mSpeculativeScriptThread = new nsSpeculativeScriptThread();
     if (!mSpeculativeScriptThread) {
       return;
     }
   }
 
   nsresult rv = mSpeculativeScriptThread->StartParsing(this);
   if (NS_FAILED(rv)) {
     mSpeculativeScriptThread = nsnull;
   }
+#endif
 }
 
 /**
  * This method adds a new parser context to the list,
  * pushing the current one to the next position.
  *
  * @param   ptr to new context
  */