/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* 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/. */
// This enum defines type of content that is detected when an // nsMixedContentEvent fires enum MixedContentTypes { // "Active" content, such as fonts, plugin content, JavaScript, stylesheets, // iframes, WebSockets, and XHR
eMixedScript, // "Display" content, such as images, audio, video, and <a ping>
eMixedDisplay
};
/** * Returns true if the provided content policy type is subject to the * mixed content level 2 upgrading mechanism (audio, video, image). * * @param aConsiderPrefs A boolean that indicates whether the result of this * functions takes the `security.mixed_content.upgrade_display_content` * preferences into account.
*/ staticbool IsUpgradableContentType(nsContentPolicyType aType, bool aConsiderPrefs);
/* Static version of ShouldLoad() that contains all the Mixed Content Blocker * logic. Called from non-static ShouldLoad(). * Called directly from imageLib when an insecure redirect exists in a cached * image load. * @param aHadInsecureImageRedirect * boolean flag indicating that an insecure redirect through http * occured when this image was initially loaded and cached. * @param aReportError * boolean flag indicating if a rejection should automaticly be * logged into the Console. * Remaining parameters are from nsIContentPolicy::ShouldLoad().
*/ static nsresult ShouldLoad(bool aHadInsecureImageRedirect,
nsIURI* aContentLocation, nsILoadInfo* aLoadInfo, bool aReportError, int16_t* aDecision); staticvoid AccumulateMixedContentHSTS(
nsIURI* aURI, bool aActive, const OriginAttributes& aOriginAttributes);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.