Bug 654106 - Avoid registering a script observer in the fragment parsing case. r=bzbarsky.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user