Bug 1701306 - Remove custom code setting the "open" attribute on panel anchors. r=mconley

Differential Revision: https://phabricator.services.mozilla.com/D110817
This commit is contained in:
Dão Gottwald
2021-04-06 13:22:50 +00:00
parent d26afb5a90
commit 4a29705c86
5 changed files with 1 additions and 33 deletions

View File

@@ -1638,10 +1638,6 @@ var gProtectionsHandler = {
if (event.target == this._protectionsPopup) {
window.addEventListener("focus", this, true);
// Add the "open" attribute to the tracking protection icon container
// for styling.
this._trackingProtectionIconContainer.setAttribute("open", "true");
// Insert the info message if needed. This will be shown once and then
// remain collapsed.
ToolbarPanelHub.insertProtectionPanelMessage(event);
@@ -1659,7 +1655,6 @@ var gProtectionsHandler = {
onPopupHidden(event) {
if (event.target == this._protectionsPopup) {
window.removeEventListener("focus", this, true);
this._trackingProtectionIconContainer.removeAttribute("open");
}
},