Sean Feng b6ab38886a Bug 1724816 - Check the focused window still persists after MoveCaretToFocus r=smaug
In nsFocusManager::UpdateCaret, the focused window has a null check
at the beginning of the function. However, this isn't enough because
MoveCaretToFocus can possibly run scripts as well, and the scripts
may clear the focused window.

This patch adds a null check after the usage of MoveCaretToFocus.

Differential Revision: https://phabricator.services.mozilla.com/D122750
2021-08-16 18:51:26 +00:00
..