Bug 1335730 - delete the map entry when a window unloads and is tracked by the FinderHighlighter. r=jaws

MozReview-Commit-ID: 7vJ4HQwNnPp

--HG--
extra : rebase_source : be5f971a7b3a3552245d20b02341405c761e8dc8
This commit is contained in:
Mike de Boer 2017-02-06 16:25:33 +01:00
Родитель 295a461256
Коммит 75ddc332a5
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -480,12 +480,10 @@ FinderHighlighter.prototype = {
onLocationChange() {
let window = this.finder._getWindow();
this.hide(window);
let dict = this.getForWindow(window);
this.clear(window);
dict.currentFoundRange = dict.lastIteratorParams = dict.previousFoundRange =
dict.previousUpdatedRange = null;
this._removeRangeOutline(window);
gWindows.delete(window.top);
},
/**