mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00

The method may be called without focus. Therefore, it shouldn't refer `mIsInDesignMode` and it should refer focused element in the window (including shadows) if there is no selection ranges. Differential Revision: https://phabricator.services.mozilla.com/D218726