Bug 904628 - Ensure focused element is not null when calling FormAssistant.updateSelection(). r=fabrice

This commit is contained in:
Yuan Xulei 2013-08-15 12:59:28 -04:00
parent 645bcb2458
commit 0b397dc3fa

View File

@ -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());