96364 - Register html tag observers directly to parser service rather than nsObserverService. Doing so, reduces a lot of overhead. Also, the observers are now notified via sink. This eliminates the need for parser bundle.
r=dp,shanjian,sfraser, sr=rpotts. git-svn-id: svn://10.0.0.236/trunk@104152 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -174,6 +174,12 @@ enum {
|
||||
eComposerController
|
||||
};
|
||||
|
||||
static eHTMLTags gWatchTags[] =
|
||||
{ eHTMLTag_frameset,
|
||||
eHTMLTag_iframe,
|
||||
eHTMLTag_unknown
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Utility to extract document from a webshell object.
|
||||
static nsresult
|
||||
@@ -5054,9 +5060,7 @@ nsresult nsEditorShell::StartPageLoad(nsIChannel *aChannel)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
NS_ADDREF(mParserObserver);
|
||||
mParserObserver->RegisterTagToWatch("FRAMESET");
|
||||
mParserObserver->RegisterTagToWatch("IFRAME");
|
||||
mParserObserver->Start();
|
||||
mParserObserver->Start(gWatchTags);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user