Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsISupports.idl" |
michael@0 | 6 | |
michael@0 | 7 | interface nsIInterfaceRequestor; |
michael@0 | 8 | interface nsIX509Cert; |
michael@0 | 9 | interface nsISSLStatus; |
michael@0 | 10 | |
michael@0 | 11 | [scriptable, uuid(0729ce8e-8935-4989-ba72-a2d6307f2365)] |
michael@0 | 12 | interface nsISSLCertErrorDialog : nsISupports |
michael@0 | 13 | { |
michael@0 | 14 | /** |
michael@0 | 15 | * Called when an SSL connection aborts because of a bad certificate, |
michael@0 | 16 | * and no other code is in place for reporting the problem. |
michael@0 | 17 | * Should bring up a dialog to inform the user and display the certificate. |
michael@0 | 18 | * |
michael@0 | 19 | * @param status Might be used to query additional information |
michael@0 | 20 | * @param cert The certificate that this error is about |
michael@0 | 21 | * @param textErrorMessage An error message with whitespace formatting |
michael@0 | 22 | * @param htmlErrorMessage Optional, might either be empty, |
michael@0 | 23 | or might contain the same message as in |
michael@0 | 24 | textErrorMessage plus some html formatting. |
michael@0 | 25 | * @param hostName The error occurred when connecting to this hostName. |
michael@0 | 26 | * @param portNumber The error occurred when connecting to this portNumber. |
michael@0 | 27 | */ |
michael@0 | 28 | void showCertError(in nsIInterfaceRequestor ctx, |
michael@0 | 29 | in nsISSLStatus status, |
michael@0 | 30 | in nsIX509Cert cert, |
michael@0 | 31 | in AString textErrorMessage, |
michael@0 | 32 | in AString htmlErrorMessage, |
michael@0 | 33 | in ACString hostName, |
michael@0 | 34 | in uint32_t portNumber); |
michael@0 | 35 | }; |
michael@0 | 36 | |
michael@0 | 37 | %{C++ |
michael@0 | 38 | #define NS_SSLCERTERRORDIALOG_CONTRACTID "@mozilla.org/nsSSLCertErrorDialog;1" |
michael@0 | 39 | %} |