1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-03 17:45:47 +01:00

Fix finder on view-source: pages on recent Gecko 2.

This commit is contained in:
Kris Maglione
2010-10-21 16:16:14 -04:00
parent acb635d825
commit f3d194b00b

View File

@@ -621,9 +621,11 @@ const RangeFind = Class("RangeFind", {
}, },
deselect: function () { deselect: function () {
this.selection.removeAllRanges(); if (this.selection) {
if (this.initialSelection) this.selection.removeAllRanges();
this.selection.addRange(this.initialSelection); if (this.initialSelection)
this.selection.addRange(this.initialSelection);
}
}, },
get selectionController() this.docShell get selectionController() this.docShell