commit 7188d8f7e225be9206ea7abc9e9dd4e08a51f989 Author: Mike Perry mikeperry-git@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.@isSession == 1); var isHttpOnly = (xml.@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); } }
tor-commits@lists.torproject.org