I suppose it would be nice to store the fact that we *don't* want to store
passwords for a domain in the Keychain. Safari's approach for this seems pretty
ugly, though, and I'm not sure if other browsers support it.
Here are the results of testing:
// Minimum required for Safari to pick up a negative entry:
KeychainServices.addInternetPassword('Passwords\xA0not\xA0saved', null,
Security.kSecProtocolTypeHTTP, 'localhost', 0, null, null, null,
null, null);
// Might also consider setting invisible and negative to true, though
// neither seem to be used by anything else
// This is what Safari generates:
KeychainServices.addInternetPassword('Passwords\xA0not\xA0saved', null,
Security.kSecProtocolTypeHTTP, 'localhost', 0, null,
Security.kSecAuthenticationTypeHTMLForm, null, null, null);
Original issue reported on code.google.com by jfitz...@gmail.com on 5 Aug 2014 at 5:19
Original issue reported on code.google.com by
jfitz...@gmail.com
on 5 Aug 2014 at 5:19