B2G/gecko/browser/base/content/pageinfo/security.js
/**
 * Return true iff we have cookies for uri
 */
Return true iff we have cookies for uri
Return true iff we have cookies for uri
function hostHasCookies(uri) {
  var cookieManager = Components.classes["@mozilla.org/cookiemanager;1"]
                                .getService(Components.interfaces.nsICookieManager2);
  return cookieManager.countCookiesFromHost(uri.asciiHost) > 0;
}
function hostHasCookies ( uri ) { var cookieManager = Components . classes [ "@mozilla.org/cookiemanager;1" ] . getService ( Components . interfaces . nsICookieManager2 ) ; return cookieManager . countCookiesFromHost ( uri . asciiHost ) > 0 ; }
Return true iff we have cookies for uri
Return true iff we have cookies for uri