Bug 750146 - Do not call back on the nsTextEditorState if the restore selection event has been revoked; r=bzbarsky

--HG--
extra : rebase_source : b37d85e9c2e628b15b23bbedc2eee74d66d8fa46
This commit is contained in:
Ehsan Akhgari 2012-04-30 17:05:53 -04:00
Родитель bf73ed7120
Коммит 2eacf185a5
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -84,6 +84,10 @@ public:
}
NS_IMETHOD Run() {
if (!mTextEditorState) {
return NS_OK;
}
if (mFrame) {
// SetSelectionRange leads to Selection::AddRange which flushes Layout -
// need to block script to avoid nested PrepareEditor calls (bug 642800).
@ -105,6 +109,7 @@ public:
// Let the text editor tell us we're no longer relevant - avoids use of nsWeakFrame
void Revoke() {
mFrame = nsnull;
mTextEditorState = nsnull;
}
private: