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