зеркало из https://github.com/mozilla/gecko-dev.git
Bug 904628 - Ensure focused element is not null when calling FormAssistant.updateSelection(). r=fabrice
This commit is contained in:
Родитель
9c63848eb7
Коммит
fa69e24ccf
|
@ -667,6 +667,9 @@ let FormAssistant = {
|
|||
|
||||
// Notify when the selection range changes
|
||||
updateSelection: function fa_updateSelection() {
|
||||
if (!this.focusedElement) {
|
||||
return;
|
||||
}
|
||||
let selectionInfo = this.getSelectionInfo();
|
||||
if (selectionInfo.changed) {
|
||||
sendAsyncMessage("Forms:SelectionChange", this.getSelectionInfo());
|
||||
|
|
Загрузка…
Ссылка в новой задаче