mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
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:
parent
a27ac8f7c4
commit
f512f9b058
@ -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) {
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user