[tor-commits] [torbutton/master] Remove an ancient fallback for the Cookie api for FF2.0.

mikeperry at torproject.org mikeperry at torproject.org
Mon Mar 21 05:23:16 UTC 2011


commit 7188d8f7e225be9206ea7abc9e9dd4e08a51f989
Author: Mike Perry <mikeperry-git at fscked.org>
Date:   Sun Mar 20 22:20:36 2011 -0700

    Remove an ancient fallback for the Cookie api for FF2.0.
    
    FF2.0 is no longer supported, and this cuts a lot of exception noise out of
    the javascript debugger.
---
 src/components/cookie-jar-selector.js |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/components/cookie-jar-selector.js b/src/components/cookie-jar-selector.js
index 4122862..c80d662 100644
--- a/src/components/cookie-jar-selector.js
+++ b/src/components/cookie-jar-selector.js
@@ -139,16 +139,8 @@ function CookieJarSelector() {
             var isSession = (xml. at isSession == 1);
             var isHttpOnly = (xml. at isHttpOnly == 1);
             //this.logger.log(2, "Loading cookie: "+host+":"+cname+" until: "+expiry);
-            try {
-                cookieManager.add(host, path, cname, value, isSecure, isSession,
-                        expiry);
-            } catch(e) {
-                // Api changed to add httpOnly cookies support. see mozilla bug #379408
-                if (e.result == Cr.NS_ERROR_XPC_NOT_ENOUGH_ARGS) {
-                    cookieManager.add(host, path, cname, value, isSecure, 
-                            isHttpOnly, isSession, expiry);
-                } 
-            }
+            cookieManager.add(host, path, cname, value, isSecure,
+                    isHttpOnly, isSession, expiry);
         }
   }
 



More information about the tor-commits mailing list