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