Bug 478219. Put a script blocker around delayed editor init. r+sr=sicking

This commit is contained in:
Boris Zbarsky 2009-03-16 07:50:04 -04:00
parent f3a8cda6ed
commit f992c9df1d

View File

@ -1386,6 +1386,10 @@ nsTextControlFrame::CalcIntrinsicSize(nsIRenderingContext* aRenderingContext,
void
nsTextControlFrame::DelayedEditorInit()
{
// Make sure that editor init doesn't do things that would kill us off
// (especially off the script blockers it'll create for its DOM mutations).
nsAutoScriptBlocker scriptBlocker;
// Time to mess with our security context... See comments in GetValue()
// for why this is needed.
nsCxPusher pusher;