Bug 654106 - Avoid registering a script observer in the fragment parsing case. r=bzbarsky.

This commit is contained in:
Henri Sivonen
2011-05-04 09:35:14 +03:00
parent c6cbd457be
commit 357282f953
4 changed files with 25 additions and 23 deletions

View File

@@ -124,8 +124,6 @@ class nsHtml5TreeOpExecutor : public nsContentSink,
PRBool mCallContinueInterruptedParsingIfEnabled;
PRBool mFragmentMode;
PRBool mPreventScriptExecution;
public:
@@ -241,8 +239,6 @@ class nsHtml5TreeOpExecutor : public nsContentSink,
*/
void EnableFragmentMode(PRBool aPreventScriptExecution) {
mFragmentMode = PR_TRUE;
mCanInterruptParser = PR_FALSE; // prevent DropParserAndPerfHint
// from unblocking onload
mPreventScriptExecution = aPreventScriptExecution;
}