зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
295a461256
Коммит
75ddc332a5
|
@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче