bug 109800 r=valesky sr=dveditz a=roc+moz

nsIPasswordManager.idl doesn't allow you to manually add a site to the never saved list
This commit is contained in:
cbiesinger%web.de 2002-03-28 21:21:08 +00:00
parent a27ac8f7c4
commit f512f9b058
3 changed files with 23 additions and 0 deletions

View File

@ -855,6 +855,16 @@ SINGSIGN_RemoveReject(const char *host) {
return rv;
}
PRIVATE void
si_PutReject(const char * passwordRealm, const nsString& userName, PRBool save);
PUBLIC nsresult
SINGSIGN_AddReject(const char *host /*, const char *userName*/) {
si_PutReject(host, nsString(/*thisParameter_isObsolete*/), PR_TRUE);
// @see http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/extensions/wallet/src/singsign.cpp&rev=1.212&mark=1693#1650
return NS_OK;
}
/* Determine if a specified url/user exists */
PRIVATE PRBool
si_CheckForUser(const char *passwordRealm, const nsString& userName) {

View File

@ -106,6 +106,10 @@ extern nsresult
SINGSIGN_RemoveReject
(const char* host);
extern nsresult
SINGSIGN_AddReject
(const char* host);
extern PRBool
SINGSIGN_StorePassword
(const char* passwordRealm, const PRUnichar *userName, const PRUnichar *password);

View File

@ -53,6 +53,15 @@ interface nsIPasswordManager : nsISupports
*/
void removeUser(in AUTF8String aHost, in AString aUser);
/**
* Called to add a host to the list of rejected hosts -- i.e., hosts for which
* the do-you-want-to-save dialog does appear
*
* @param aHost The host for which the dialog is to not appear
*
*/
void addReject(in AUTF8String aHost);
/**
* Called to remove a host from the list of rejected hosts -- i.e., hosts for which
* the do-you-want-to-save dialog does not appear