mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00

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