diff --git a/common/content/finder.js b/common/content/finder.js index a940b8f5..9360fce8 100644 --- a/common/content/finder.js +++ b/common/content/finder.js @@ -621,9 +621,11 @@ const RangeFind = Class("RangeFind", { }, deselect: function () { - this.selection.removeAllRanges(); - if (this.initialSelection) - this.selection.addRange(this.initialSelection); + if (this.selection) { + this.selection.removeAllRanges(); + if (this.initialSelection) + this.selection.addRange(this.initialSelection); + } }, get selectionController() this.docShell