diff -r 000000000000 -r 6474c204b198 security/manager/ssl/public/nsIDOMCryptoDialogs.idl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/security/manager/ssl/public/nsIDOMCryptoDialogs.idl Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,24 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "nsISupports.idl" + +interface nsIX509Cert; + +[scriptable, uuid(1f8fe77e-1dd2-11b2-8dd2-e55f8d3465b8)] +interface nsIDOMCryptoDialogs : nsISupports +{ + /** + * This method is used to warn the user the web site is + * trying to escrow the generated private key. This + * method should return true if the user wants to proceed + * and false if the user cancels the action. + */ + boolean ConfirmKeyEscrow(in nsIX509Cert escrowAuthority); + +}; + +%{C++ +#define NS_DOMCRYPTODIALOGS_CONTRACTID "@mozilla.org/nsDOMCryptoDialogs;1" +%}