[Pkg-mozext-commits] [adblock-plus] 05/22: issue 47 - use WeakMap instead of setUserData and getUserData methods

David Prévot taffit at moszumanska.debian.org
Thu Jun 5 14:01:08 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 972408582c2390594f1bda74b1d8fdde2f4e215b
Author: Manvel Saroyan <manvel at adblockplus.org>
Date:   Sun May 18 21:01:10 2014 +0400

    issue 47 - use WeakMap instead of setUserData and getUserData methods
---
 lib/requestNotifier.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/requestNotifier.js b/lib/requestNotifier.js
index 9a77df5..63edc5f 100644
--- a/lib/requestNotifier.js
+++ b/lib/requestNotifier.js
@@ -29,10 +29,9 @@ let windowStats = new WeakMap();
 let windowSelection = new WeakMap();
 
 let setEntry, hasEntry, getEntry;
-if (false)
+// Last issue(Bug 982561) preventing us from using WeakMap fixed for FF version 32
+if (Services.vc.compare(Utils.platformVersion, "32.0a1") >= 0)
 {
-  // This branch can be enabled again once all of bug 673468, bug 819131 and
-  // bug 982561 are fixed and we can use weak maps.
   setEntry = function(map, key, value) map.set(key, value);
   hasEntry = function(map, key) map.has(key);
   getEntry = function(map, key) map.get(key);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list