Bug 1430416 unset the findbar when discarding a browser tab, r=mikedeboer

MozReview-Commit-ID: B36n2uG6Qhk

--HG--
extra : rebase_source : 9b5268adb0d28fa571687d6ca678dda80955590c
This commit is contained in:
Shane Caraveo 2018-01-26 10:23:52 -07:00
Родитель 8b241b5e1e
Коммит 7503529676
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -2567,6 +2567,13 @@
this._tabListeners.delete(tab);
this._tabFilters.delete(tab);
// Reset the findbar and remove it if it is attached to the tab.
if (tab._findBar) {
tab._findBar.close(true);
tab._findBar.remove();
delete tab._findBar;
}
aBrowser.destroy();
let notificationbox = this.getNotificationBox(aBrowser);