michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsIInterfaceRequestor; michael@0: michael@0: /** michael@0: * Functions that display warnings for transitions between secure michael@0: * and insecure pages, posts to insecure servers etc. michael@0: */ michael@0: [scriptable, uuid(a9561631-5964-4d3f-b372-9f23504054b1)] michael@0: interface nsISecurityWarningDialogs : nsISupports michael@0: { michael@0: /** michael@0: * Inform the user: Although the currently displayed michael@0: * page was loaded using a secure connection, and the UI probably michael@0: * currently indicates a secure page, michael@0: * that information is being submitted to an insecure page. michael@0: * michael@0: * @param ctx A user interface context. michael@0: * michael@0: * @return true if the user confirms to submit. michael@0: */ michael@0: boolean confirmPostToInsecureFromSecure(in nsIInterfaceRequestor ctx); michael@0: }; michael@0: michael@0: %{C++ michael@0: #define NS_SECURITYWARNINGDIALOGS_CONTRACTID "@mozilla.org/nsSecurityWarningDialogs;1" michael@0: %}