mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 904628 - Ensure focused element is not null when calling FormAssistant.updateSelection(). r=fabrice
This commit is contained in:
parent
645bcb2458
commit
0b397dc3fa
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user