Bug 1451058: Follow-up: Fix window leak in popup tests. r=bustage

MozReview-Commit-ID: 7ucAN5usp0o
This commit is contained in:
Kris Maglione 2018-04-06 19:22:39 -07:00
Родитель 27b1c032a5
Коммит b2ea14013a
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -124,6 +124,9 @@ class BasePopup {
}
let {panel} = this;
if (panel) {
panel.removeEventListener("popuppositioned", this, {capture: true});
}
if (panel && panel.id !== REMOTE_PANEL_ID) {
panel.style.removeProperty("--arrowpanel-background");
panel.removeAttribute("remote");