diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-02-22 11:57:51 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-22 11:57:51 +0100 |
commit | b1aa8a1f27e42e0e847c0b465a01c2374de6b30b (patch) | |
tree | f97d693bfcdc8b562d9735dedade4707b7f2f8f6 | |
parent | 32d4c2ff4e567660e8caeaac0c21d01528a52bdf (diff) | |
download | uxp-b1aa8a1f27e42e0e847c0b465a01c2374de6b30b.tar.gz |
Prevent issues and possible leaks with the bookmarks menu bar as a result of XBL re-binding.
-rw-r--r-- | browser/base/content/browser-places.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/browser/base/content/browser-places.js b/browser/base/content/browser-places.js index 14e90cde2c..de880d11d3 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. |