-
-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always fire the popup hidden event for customizable UI popups (#2743)
- Loading branch information
1 parent
40af655
commit dd88086
Showing
3 changed files
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/browser/components/customizableui/content/panelUI-js.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/browser/components/customizableui/content/panelUI.js b/browser/components/customizableui/content/panelUI.js | ||
index 1805bad6c58e060533f634ed9e511c05cad3ded1..4eb04f3eb1b9dd1c5d663cca0a7ad903b38c4efd 100644 | ||
--- a/browser/components/customizableui/content/panelUI.js | ||
+++ b/browser/components/customizableui/content/panelUI.js | ||
@@ -545,7 +545,7 @@ const PanelUI = { | ||
|
||
if (viewShown) { | ||
CustomizableUI.addPanelCloseListeners(tempPanel); | ||
- tempPanel.addEventListener("popuphidden", panelRemover); | ||
+ tempPanel.addEventListener("popuphidden", panelRemover, { capture: true }); | ||
} else { | ||
panelRemover(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters