[Pkg-mozext-commits] [tabmixplus] 116/123: Clean our weakmaps
David Prévot
taffit at moszumanska.debian.org
Wed Sep 17 21:16:33 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit f77e6842d369c25362761ddd9431a563f6bce754
Author: onemen <tabmix.onemen at gmail.com>
Date: Tue Sep 16 21:25:01 2014 +0300
Clean our weakmaps
---
chrome/content/tabmix.js | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/chrome/content/tabmix.js b/chrome/content/tabmix.js
index fc3739d..8e307f7 100644
--- a/chrome/content/tabmix.js
+++ b/chrome/content/tabmix.js
@@ -842,6 +842,13 @@ var TMP_eventListener = {
this.onTabClose_updateTabBar(tab);
Tabmix.countClosedTabs(tab);
+
+ // clean WeakMap
+ let browser = tab.linkedBrowser;
+ if (browser && TabmixSvc.syncHandlers.has(browser.permanentKey))
+ TabmixSvc.syncHandlers.delete(browser.permanentKey);
+ if (this.tabWidthCache.has(tab))
+ this.tabWidthCache.delete(tab);
},
// TGM extension use it
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list