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

@@ -96,9 +96,6 @@ var StarUI = {
let { selectedFolderGuid, didChangeFolder } = gEditItemOverlay;
gEditItemOverlay.uninitPanel(true);
this._anchorElement.removeAttribute("open");
this._anchorElement = null;
let removeBookmarksOnPopupHidden = this._removeBookmarksOnPopupHidden;
this._removeBookmarksOnPopupHidden = false;
let guidsForRemoval = this._itemGuids;
@@ -299,9 +296,6 @@ var StarUI = {
this.beginBatch();
this._anchorElement = BookmarkingUI.anchor;
this._anchorElement.setAttribute("open", "true");
let onPanelReady = fn => {
let target = this.panel;
if (target.parentNode) {
@@ -326,7 +320,7 @@ var StarUI = {
isNewBookmark: this._isNewBookmark,
});
this.panel.openPopup(this._anchorElement, "bottomcenter topright");
this.panel.openPopup(BookmarkingUI.anchor, "bottomcenter topright");
},
_createPanelIfNeeded() {