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
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsISupports.idl"
8 interface nsIInterfaceRequestor;
10 /**
11 * Functions that display warnings for transitions between secure
12 * and insecure pages, posts to insecure servers etc.
13 */
14 [scriptable, uuid(a9561631-5964-4d3f-b372-9f23504054b1)]
15 interface nsISecurityWarningDialogs : nsISupports
16 {
17 /**
18 * Inform the user: Although the currently displayed
19 * page was loaded using a secure connection, and the UI probably
20 * currently indicates a secure page,
21 * that information is being submitted to an insecure page.
22 *
23 * @param ctx A user interface context.
24 *
25 * @return true if the user confirms to submit.
26 */
27 boolean confirmPostToInsecureFromSecure(in nsIInterfaceRequestor ctx);
28 };
30 %{C++
31 #define NS_SECURITYWARNINGDIALOGS_CONTRACTID "@mozilla.org/nsSecurityWarningDialogs;1"
32 %}