B2G/gecko/toolkit/forgetaboutsite/test/unit/test_removeDataFromDomain.js
/**
 * Checks to see if a host is disabled for storing logins or not.
 *
 * @param aHost
 *        The host to check if it is disabled.
 * @param aIsDisabled
 *        True if the host should be disabled, false otherwise.
 */
Checks to see if a host is disabled for storing logins or not.
@param aHost
The host to check if it is disabled.
@param aIsDisabled
True if the host should be disabled, false otherwise.
Checks to see if a host is disabled for storing logins or not . @param aHost The host to check if it is disabled . @param aIsDisabled True if the host should be disabled false otherwise .
function check_disabled_host(aHost, aIsDisabled)
{
  let lm = Cc["@mozilla.org/login-manager;1"].
           getService(Ci.nsILoginManager);
  let checker = aIsDisabled ? do_check_false : do_check_true;
  checker(lm.getLoginSavingEnabled(aHost));
}
function check_disabled_host ( aHost , aIsDisabled ) { let lm = Cc [ "@mozilla.org/login-manager;1" ] . getService ( Ci . nsILoginManager ) ; let checker = aIsDisabled ? do_check_false : do_check_true ; checker ( lm . getLoginSavingEnabled ( aHost ) ) ; }
Checks to see if a host is disabled for storing logins or not.
Checks to see if a host is disabled for storing logins or not .