From e5166004a90f90d831e0cb25e8729b666a0d9344 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Fri, 22 Feb 2013 18:40:09 -0500 Subject: [PATCH] Bug 842892 - Block scripts while extending the selection for deletion in order to prevent a crash when changing the type of an input; r=smaug --- editor/libeditor/text/nsTextEditRules.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/libeditor/text/nsTextEditRules.cpp b/editor/libeditor/text/nsTextEditRules.cpp index e765db817d2e..a2376b9201cb 100644 --- a/editor/libeditor/text/nsTextEditRules.cpp +++ b/editor/libeditor/text/nsTextEditRules.cpp @@ -776,6 +776,7 @@ nsTextEditRules::WillDeleteSelection(Selection* aSelection, } nsresult res = NS_OK; + nsAutoScriptBlocker scriptBlocker; if (IsPasswordEditor()) {