rem: var iter = cookieManager.enumerator; while (iter.hasMoreElements()){ var cookie = iter.getNext().QueryInterface(Components.interfaces.nsICookie); if (!cookie) continue;   if (cookie.host == hostName) return true;   if (cookie.isDomain && endsWith(hostName, cookie.host)) return true; } return false; 
add: return cookieManager.countCookiesFromHost(hostName) > 0; 
context: 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;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/1852ac4c866372838fbb9e5a9efeb2e5d5f2447b/security.js/clean/browser/base/content/pageinfo/security.js