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
Родитель daebda9aa5
Коммит 322820f523
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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;