.getService(Components.interfaces.nsICookieManager); 
.getService(Components.interfaces.nsICookieManager2); 
function hostHasCookies(hostName) {  if (!hostName)    return false;    var cookieManager = Components.classes["@mozilla.org/cookiemanager;1"]                                .getService(Components.interfaces.nsICookieManager);  var iter = cookieManager.enumerator;  while (iter.hasMoreElements()){    var cookie = iter.getNext().QueryInterface(Components.interfaces.nsICookie);    if (!cookie)      continue;        // A direct match works whether it's a domain cookie or not    if (cookie.host == hostName)      return true;        // Domain cookies just need to end with our target hostname    if (cookie.isDomain && endsWith(hostName, cookie.host))      return true;  }  return false;}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/1852ac4c866372838fbb9e5a9efeb2e5d5f2447b/security.js/buggy/browser/base/content/pageinfo/security.js