From 5da8e807feaa362e76b56f1af1748578ef295191 Mon Sep 17 00:00:00 2001 From: "thayes%netscape.com" Date: Wed, 14 Feb 2001 19:58:21 +0000 Subject: [PATCH] Define new SecurityWarningDialogs interface --- security/manager/ssl/public/nsINSSDialogs.idl | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/security/manager/ssl/public/nsINSSDialogs.idl b/security/manager/ssl/public/nsINSSDialogs.idl index fed1a4126c8e..a06885314871 100644 --- a/security/manager/ssl/public/nsINSSDialogs.idl +++ b/security/manager/ssl/public/nsINSSDialogs.idl @@ -26,7 +26,7 @@ interface nsIInterfaceRequestor; /** * nsITokenPasswordDialogs - * This is the interface for setting and changin password + * This is the interface for setting and changing password * on a PKCS11 token. */ [scriptable, uuid(be26b580-1dd1-11b2-9946-c598d0d07727)] @@ -58,6 +58,41 @@ interface nsINSSDialogs : nsISupports */ }; + +/** + * nsISecurityWarningDialogs - functions that + * display warnings for transitions between secure + * and insecure pages, posts to insecure servers etc. + */ +[scriptable, uuid(1c399d06-1dd2-11b2-bc58-c87cbcacdb78)] +interface nsISecurityWarningDialogs : nsISupports +{ + /** + * alertEnteringSecure + */ + void alertEnteringSecure(in nsIInterfaceRequestor ctx); + + /** + * alertLeavingSecure + */ + void alertLeavingSecure(in nsIInterfaceRequestor ctx); + + /** + * alertMixedMode + */ + void alertMixedMode(in nsIInterfaceRequestor ctx); + + /** + * confirmPostToInsecure + */ + boolean confirmPostToInsecure(in nsIInterfaceRequestor ctx); + + /** + * confirmPostToInsecureFromSecure + */ + boolean confirmPostToInsecureFromSecure(in nsIInterfaceRequestor ctx); +}; + /** * NS_NSSDIALOGS_CONTRACTID - contract id of a service that * implements nsINSSDialogs (and possibly other interfaces)