summaryrefslogtreecommitdiffstats
path: root/browser/base/content
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-22 11:57:51 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-22 11:57:51 +0100
commitf3f9b7b06e37f870463a5f2196457cca6b10d700 (patch)
treef97d693bfcdc8b562d9735dedade4707b7f2f8f6 /browser/base/content
parent7b7ea5c59a6f282be1d02a199f46483447ec00c1 (diff)
downloadUXP-f3f9b7b06e37f870463a5f2196457cca6b10d700.tar
UXP-f3f9b7b06e37f870463a5f2196457cca6b10d700.tar.gz
UXP-f3f9b7b06e37f870463a5f2196457cca6b10d700.tar.lz
UXP-f3f9b7b06e37f870463a5f2196457cca6b10d700.tar.xz
UXP-f3f9b7b06e37f870463a5f2196457cca6b10d700.zip
Prevent issues and possible leaks with the bookmarks menu bar as a result of XBL re-binding.
Diffstat (limited to 'browser/base/content')
-rw-r--r--browser/base/content/browser-places.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/browser/base/content/browser-places.js b/browser/base/content/browser-places.js
index 14e90cde2..de880d11d 100644
--- a/browser/base/content/browser-places.js
+++ b/browser/base/content/browser-places.js
@@ -1555,6 +1555,10 @@ var BookmarkingUI = {
// so kill current view and let popupshowing generate a new one.
if (this.button._placesView)
this.button._placesView.uninit();
+ // ...and do the same for the menu bar.
+ let menubar = document.getElementById("bookmarksMenu");
+ if (menubar._placesview)
+ menubar._placesview.uninit();
// We have to do the same thing for the "special" views underneath the
// the bookmarks menu.