Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/base/nsILoadInfo.idl
*/
#ifndef __gen_nsILoadInfo_h__
#define __gen_nsILoadInfo_h__
#include "nsISupports.h"
#include "nsIContentPolicy.h"
#include "nsIScriptSecurityManager.h"
#include "nsIInterceptionInfo.h"
#include "js/Value.h"
#include "mozilla/AlreadyAddRefed.h"
#include "mozilla/Assertions.h"
#include "mozilla/DebugOnly.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIChannel; /* forward declaration */
class nsIContentSecurityPolicy; /* forward declaration */
class nsICookieJarSettings; /* forward declaration */
class nsICSPEventListener; /* forward declaration */
class nsINode; /* forward declaration */
class nsIPrincipal; /* forward declaration */
class nsIRedirectHistoryEntry; /* forward declaration */
class nsIURI; /* forward declaration */
namespace mozilla {
namespace dom {
class Document; /* webidl Document */
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class BrowsingContext; /* webidl BrowsingContext */
} // namespace dom
} // namespace mozilla
#include "nsTArray.h"
#include "mozilla/LoadTainting.h"
#include "mozilla/OriginAttributes.h"
#include "mozilla/UniquePtr.h"
#include "nsRFPService.h"
#include "nsStringFwd.h"
namespace mozilla {
namespace dom {
class ClientInfo;
class ClientSource;
struct FeaturePolicyInfo;
class PerformanceStorage;
class ServiceWorkerDescriptor;
} // namespace dom
} // namespace mozilla
typedef uint32_t nsSecurityFlags;
/* starting interface: nsILoadInfo */
#define NS_ILOADINFO_IID_STR "ddc65bf9-2f60-41ab-b22a-4f1ae9efcd36"
#define NS_ILOADINFO_IID \
{0xddc65bf9, 0x2f60, 0x41ab, \
{ 0xb2, 0x2a, 0x4f, 0x1a, 0xe9, 0xef, 0xcd, 0x36 }}
class nsILoadInfo : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOADINFO_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsILoadInfo;
enum {
SEC_ONLY_FOR_EXPLICIT_CONTENTSEC_CHECK = 0U,
SEC_REQUIRE_SAME_ORIGIN_INHERITS_SEC_CONTEXT = 1U,
SEC_REQUIRE_SAME_ORIGIN_DATA_IS_BLOCKED = 2U,
SEC_ALLOW_CROSS_ORIGIN_INHERITS_SEC_CONTEXT = 4U,
SEC_ALLOW_CROSS_ORIGIN_SEC_CONTEXT_IS_NULL = 8U,
SEC_REQUIRE_CORS_INHERITS_SEC_CONTEXT = 16U,
SEC_COOKIES_DEFAULT = 0U,
SEC_COOKIES_INCLUDE = 32U,
SEC_COOKIES_SAME_ORIGIN = 64U,
SEC_COOKIES_OMIT = 96U,
SEC_FORCE_INHERIT_PRINCIPAL = 128U,
SEC_ABOUT_BLANK_INHERITS = 512U,
SEC_ALLOW_CHROME = 1024U,
SEC_DISALLOW_SCRIPT = 2048U,
SEC_DONT_FOLLOW_REDIRECTS = 4096U,
SEC_LOAD_ERROR_PAGE = 8192U,
SEC_FORCE_INHERIT_PRINCIPAL_OVERRULE_OWNER = 16384U
};
/* readonly attribute nsIPrincipal loadingPrincipal; */
NS_IMETHOD GetLoadingPrincipal(nsIPrincipal **aLoadingPrincipal) = 0;
/* [noscript,nostdcall,notxpcom] nsIPrincipal virtualGetLoadingPrincipal (); */
virtual nsIPrincipal * VirtualGetLoadingPrincipal(void) = 0;
nsIPrincipal* GetLoadingPrincipal() {
return VirtualGetLoadingPrincipal();
}
/* readonly attribute nsIPrincipal triggeringPrincipal; */
NS_IMETHOD GetTriggeringPrincipal(nsIPrincipal **aTriggeringPrincipal) = 0;
/* [binaryname(TriggeringPrincipal),noscript,nostdcall,notxpcom] nsIPrincipal binaryTriggeringPrincipal (); */
virtual nsIPrincipal * TriggeringPrincipal(void) = 0;
/* attribute AUTF8String triggeringRemoteType; */
NS_IMETHOD GetTriggeringRemoteType(nsACString& aTriggeringRemoteType) = 0;
NS_IMETHOD SetTriggeringRemoteType(const nsACString& aTriggeringRemoteType) = 0;
/* attribute nsIPrincipal principalToInherit; */
NS_IMETHOD GetPrincipalToInherit(nsIPrincipal **aPrincipalToInherit) = 0;
NS_IMETHOD SetPrincipalToInherit(nsIPrincipal *aPrincipalToInherit) = 0;
/* [binaryname(PrincipalToInherit),noscript,nostdcall,notxpcom] nsIPrincipal binaryPrincipalToInherit (); */
virtual nsIPrincipal * PrincipalToInherit(void) = 0;
/* [noscript,nostdcall,notxpcom] nsIPrincipal FindPrincipalToInherit (in nsIChannel aChannel); */
virtual nsIPrincipal * FindPrincipalToInherit(nsIChannel *aChannel) = 0;
/* readonly attribute Document loadingDocument; */
NS_IMETHOD GetLoadingDocument(mozilla::dom::Document **aLoadingDocument) = 0;
/* [binaryname(LoadingNode),noscript,nostdcall,notxpcom] nsINode binaryLoadingNode (); */
virtual nsINode * LoadingNode(void) = 0;
/* [binaryname(ContextForTopLevelLoad),noscript,nostdcall,notxpcom] LoadContextRef binaryContextForTopLevelLoad (); */
virtual already_AddRefed<nsISupports> ContextForTopLevelLoad(void) = 0;
/* [binaryname(LoadingContextXPCOM)] readonly attribute nsISupports loadingContext; */
NS_IMETHOD GetLoadingContextXPCOM(nsISupports **aLoadingContext) = 0;
/* [binaryname(GetLoadingContext),noscript,nostdcall,notxpcom] LoadContextRef binaryGetLoadingContext (); */
virtual already_AddRefed<nsISupports> GetLoadingContext(void) = 0;
/* readonly attribute nsSecurityFlags securityFlags; */
NS_IMETHOD GetSecurityFlags(nsSecurityFlags *aSecurityFlags) = 0;
inline nsSecurityFlags GetSecurityFlags()
{
nsSecurityFlags result;
mozilla::DebugOnly<nsresult> rv = GetSecurityFlags(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute unsigned long sandboxFlags; */
NS_IMETHOD GetSandboxFlags(uint32_t *aSandboxFlags) = 0;
inline uint32_t GetSandboxFlags()
{
uint32_t result;
mozilla::DebugOnly<nsresult> rv = GetSandboxFlags(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] attribute unsigned long triggeringSandboxFlags; */
NS_IMETHOD GetTriggeringSandboxFlags(uint32_t *aTriggeringSandboxFlags) = 0;
inline uint32_t GetTriggeringSandboxFlags()
{
uint32_t result;
mozilla::DebugOnly<nsresult> rv = GetTriggeringSandboxFlags(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetTriggeringSandboxFlags(uint32_t aTriggeringSandboxFlags) = 0;
/* [infallible] attribute unsigned long long triggeringWindowId; */
NS_IMETHOD GetTriggeringWindowId(uint64_t *aTriggeringWindowId) = 0;
inline uint64_t GetTriggeringWindowId()
{
uint64_t result;
mozilla::DebugOnly<nsresult> rv = GetTriggeringWindowId(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetTriggeringWindowId(uint64_t aTriggeringWindowId) = 0;
/* [infallible] attribute boolean triggeringStorageAccess; */
NS_IMETHOD GetTriggeringStorageAccess(bool *aTriggeringStorageAccess) = 0;
inline bool GetTriggeringStorageAccess()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetTriggeringStorageAccess(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetTriggeringStorageAccess(bool aTriggeringStorageAccess) = 0;
/* [infallible] readonly attribute unsigned long securityMode; */
NS_IMETHOD GetSecurityMode(uint32_t *aSecurityMode) = 0;
inline uint32_t GetSecurityMode()
{
uint32_t result;
mozilla::DebugOnly<nsresult> rv = GetSecurityMode(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] attribute boolean skipContentSniffing; */
NS_IMETHOD GetSkipContentSniffing(bool *aSkipContentSniffing) = 0;
inline bool GetSkipContentSniffing()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetSkipContentSniffing(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetSkipContentSniffing(bool aSkipContentSniffing) = 0;
enum {
HTTPS_ONLY_UNINITIALIZED = 1U,
HTTPS_ONLY_UPGRADED_LISTENER_NOT_REGISTERED = 2U,
HTTPS_ONLY_UPGRADED_LISTENER_REGISTERED = 4U,
HTTPS_ONLY_EXEMPT = 8U,
HTTPS_ONLY_TOP_LEVEL_LOAD_IN_PROGRESS = 16U,
HTTPS_ONLY_DOWNLOAD_IN_PROGRESS = 32U,
HTTPS_ONLY_DO_NOT_LOG_TO_CONSOLE = 64U,
HTTPS_ONLY_UPGRADED_HTTPS_FIRST = 128U,
HTTPS_ONLY_BYPASS_ORB = 256U,
HTTPS_FIRST_EXEMPT_NEXT_LOAD = 512U
};
/* [infallible] attribute unsigned long httpsOnlyStatus; */
NS_IMETHOD GetHttpsOnlyStatus(uint32_t *aHttpsOnlyStatus) = 0;
inline uint32_t GetHttpsOnlyStatus()
{
uint32_t result;
mozilla::DebugOnly<nsresult> rv = GetHttpsOnlyStatus(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetHttpsOnlyStatus(uint32_t aHttpsOnlyStatus) = 0;
/* [infallible] attribute boolean hstsStatus; */
NS_IMETHOD GetHstsStatus(bool *aHstsStatus) = 0;
inline bool GetHstsStatus()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetHstsStatus(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetHstsStatus(bool aHstsStatus) = 0;
/* [infallible] attribute boolean hasValidUserGestureActivation; */
NS_IMETHOD GetHasValidUserGestureActivation(bool *aHasValidUserGestureActivation) = 0;
inline bool GetHasValidUserGestureActivation()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetHasValidUserGestureActivation(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetHasValidUserGestureActivation(bool aHasValidUserGestureActivation) = 0;
/* [infallible] attribute boolean textDirectiveUserActivation; */
NS_IMETHOD GetTextDirectiveUserActivation(bool *aTextDirectiveUserActivation) = 0;
inline bool GetTextDirectiveUserActivation()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetTextDirectiveUserActivation(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetTextDirectiveUserActivation(bool aTextDirectiveUserActivation) = 0;
/* [infallible] attribute boolean isSameDocumentNavigation; */
NS_IMETHOD GetIsSameDocumentNavigation(bool *aIsSameDocumentNavigation) = 0;
inline bool GetIsSameDocumentNavigation()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsSameDocumentNavigation(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsSameDocumentNavigation(bool aIsSameDocumentNavigation) = 0;
/* [infallible] attribute boolean allowDeprecatedSystemRequests; */
NS_IMETHOD GetAllowDeprecatedSystemRequests(bool *aAllowDeprecatedSystemRequests) = 0;
inline bool GetAllowDeprecatedSystemRequests()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetAllowDeprecatedSystemRequests(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetAllowDeprecatedSystemRequests(bool aAllowDeprecatedSystemRequests) = 0;
/* [infallible] attribute boolean parserCreatedScript; */
NS_IMETHOD GetParserCreatedScript(bool *aParserCreatedScript) = 0;
inline bool GetParserCreatedScript()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetParserCreatedScript(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetParserCreatedScript(bool aParserCreatedScript) = 0;
/* [infallible] attribute boolean isUserTriggeredSave; */
NS_IMETHOD GetIsUserTriggeredSave(bool *aIsUserTriggeredSave) = 0;
inline bool GetIsUserTriggeredSave()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsUserTriggeredSave(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsUserTriggeredSave(bool aIsUserTriggeredSave) = 0;
/* [infallible] attribute boolean isInDevToolsContext; */
NS_IMETHOD GetIsInDevToolsContext(bool *aIsInDevToolsContext) = 0;
inline bool GetIsInDevToolsContext()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsInDevToolsContext(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsInDevToolsContext(bool aIsInDevToolsContext) = 0;
/* [infallible] attribute boolean isInThirdPartyContext; */
NS_IMETHOD GetIsInThirdPartyContext(bool *aIsInThirdPartyContext) = 0;
inline bool GetIsInThirdPartyContext()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsInThirdPartyContext(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsInThirdPartyContext(bool aIsInThirdPartyContext) = 0;
/* [infallible] attribute boolean isThirdPartyContextToTopWindow; */
NS_IMETHOD GetIsThirdPartyContextToTopWindow(bool *aIsThirdPartyContextToTopWindow) = 0;
inline bool GetIsThirdPartyContextToTopWindow()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsThirdPartyContextToTopWindow(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsThirdPartyContextToTopWindow(bool aIsThirdPartyContextToTopWindow) = 0;
/* [infallible] readonly attribute unsigned long cookiePolicy; */
NS_IMETHOD GetCookiePolicy(uint32_t *aCookiePolicy) = 0;
inline uint32_t GetCookiePolicy()
{
uint32_t result;
mozilla::DebugOnly<nsresult> rv = GetCookiePolicy(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* attribute nsICookieJarSettings cookieJarSettings; */
NS_IMETHOD GetCookieJarSettings(nsICookieJarSettings **aCookieJarSettings) = 0;
NS_IMETHOD SetCookieJarSettings(nsICookieJarSettings *aCookieJarSettings) = 0;
enum StoragePermissionState : uint8_t {
NoStoragePermission = 0,
HasStoragePermission = 1,
StoragePermissionAllowListed = 2,
};
/* [infallible] attribute nsILoadInfo_StoragePermissionState storagePermission; */
NS_IMETHOD GetStoragePermission(nsILoadInfo::StoragePermissionState *aStoragePermission) = 0;
inline nsILoadInfo::StoragePermissionState GetStoragePermission()
{
nsILoadInfo::StoragePermissionState result;
mozilla::DebugOnly<nsresult> rv = GetStoragePermission(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetStoragePermission(nsILoadInfo::StoragePermissionState aStoragePermission) = 0;
/* [noscript,nostdcall,notxpcom] const_MaybeRFPTarget GetOverriddenFingerprintingSettings (); */
virtual const mozilla::Maybe<mozilla::RFPTarget> & GetOverriddenFingerprintingSettings(void) = 0;
/* [noscript,nostdcall,notxpcom] void SetOverriddenFingerprintingSettings (in RFPTarget aTargets); */
virtual void SetOverriddenFingerprintingSettings(mozilla::RFPTarget aTargets) = 0;
/* [infallible] attribute boolean isMetaRefresh; */
NS_IMETHOD GetIsMetaRefresh(bool *aIsMetaRefresh) = 0;
inline bool GetIsMetaRefresh()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsMetaRefresh(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsMetaRefresh(bool aIsMetaRefresh) = 0;
/* [infallible] readonly attribute boolean forceInheritPrincipal; */
NS_IMETHOD GetForceInheritPrincipal(bool *aForceInheritPrincipal) = 0;
inline bool GetForceInheritPrincipal()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetForceInheritPrincipal(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute boolean forceInheritPrincipalOverruleOwner; */
NS_IMETHOD GetForceInheritPrincipalOverruleOwner(bool *aForceInheritPrincipalOverruleOwner) = 0;
inline bool GetForceInheritPrincipalOverruleOwner()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetForceInheritPrincipalOverruleOwner(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute boolean loadingSandboxed; */
NS_IMETHOD GetLoadingSandboxed(bool *aLoadingSandboxed) = 0;
inline bool GetLoadingSandboxed()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetLoadingSandboxed(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute boolean aboutBlankInherits; */
NS_IMETHOD GetAboutBlankInherits(bool *aAboutBlankInherits) = 0;
inline bool GetAboutBlankInherits()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetAboutBlankInherits(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute boolean allowChrome; */
NS_IMETHOD GetAllowChrome(bool *aAllowChrome) = 0;
inline bool GetAllowChrome()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetAllowChrome(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute boolean disallowScript; */
NS_IMETHOD GetDisallowScript(bool *aDisallowScript) = 0;
inline bool GetDisallowScript()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetDisallowScript(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
uint32_t CheckLoadURIFlags() {
uint32_t flags = nsIScriptSecurityManager::STANDARD;
if (GetAllowChrome()) {
flags |= nsIScriptSecurityManager::ALLOW_CHROME;
}
if (GetDisallowScript()) {
flags |= nsIScriptSecurityManager::DISALLOW_SCRIPT;
}
return flags;
}
/* [infallible] readonly attribute boolean dontFollowRedirects; */
NS_IMETHOD GetDontFollowRedirects(bool *aDontFollowRedirects) = 0;
inline bool GetDontFollowRedirects()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetDontFollowRedirects(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute boolean loadErrorPage; */
NS_IMETHOD GetLoadErrorPage(bool *aLoadErrorPage) = 0;
inline bool GetLoadErrorPage()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetLoadErrorPage(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] attribute boolean isFormSubmission; */
NS_IMETHOD GetIsFormSubmission(bool *aIsFormSubmission) = 0;
inline bool GetIsFormSubmission()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsFormSubmission(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsFormSubmission(bool aIsFormSubmission) = 0;
/* [infallible] attribute boolean isGETRequest; */
NS_IMETHOD GetIsGETRequest(bool *aIsGETRequest) = 0;
inline bool GetIsGETRequest()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsGETRequest(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsGETRequest(bool aIsGETRequest) = 0;
/* readonly attribute nsContentPolicyType externalContentPolicyType; */
NS_IMETHOD GetExternalContentPolicyType(nsContentPolicyType *aExternalContentPolicyType) = 0;
/* [infallible] attribute boolean sendCSPViolationEvents; */
NS_IMETHOD GetSendCSPViolationEvents(bool *aSendCSPViolationEvents) = 0;
inline bool GetSendCSPViolationEvents()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetSendCSPViolationEvents(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetSendCSPViolationEvents(bool aSendCSPViolationEvents) = 0;
inline ExtContentPolicyType GetExternalContentPolicyType()
{
nsContentPolicyType result;
mozilla::DebugOnly<nsresult> rv = GetExternalContentPolicyType(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return static_cast<ExtContentPolicyType>(result);
}
/* [binaryname(InternalContentPolicyType),noscript,nostdcall,notxpcom] nsContentPolicyType binaryInternalContentPolicyType (); */
virtual nsContentPolicyType InternalContentPolicyType(void) = 0;
/* readonly attribute nsContentPolicyType internalContentPolicyType; */
NS_IMETHOD GetInternalContentPolicyType(nsContentPolicyType *aInternalContentPolicyType) = 0;
/* readonly attribute ACString fetchDestination; */
NS_IMETHOD GetFetchDestination(nsACString& aFetchDestination) = 0;
/* [infallible] readonly attribute boolean blockAllMixedContent; */
NS_IMETHOD GetBlockAllMixedContent(bool *aBlockAllMixedContent) = 0;
inline bool GetBlockAllMixedContent()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetBlockAllMixedContent(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute boolean upgradeInsecureRequests; */
NS_IMETHOD GetUpgradeInsecureRequests(bool *aUpgradeInsecureRequests) = 0;
inline bool GetUpgradeInsecureRequests()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetUpgradeInsecureRequests(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute boolean browserUpgradeInsecureRequests; */
NS_IMETHOD GetBrowserUpgradeInsecureRequests(bool *aBrowserUpgradeInsecureRequests) = 0;
inline bool GetBrowserUpgradeInsecureRequests()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetBrowserUpgradeInsecureRequests(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] attribute boolean browserDidUpgradeInsecureRequests; */
NS_IMETHOD GetBrowserDidUpgradeInsecureRequests(bool *aBrowserDidUpgradeInsecureRequests) = 0;
inline bool GetBrowserDidUpgradeInsecureRequests()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetBrowserDidUpgradeInsecureRequests(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetBrowserDidUpgradeInsecureRequests(bool aBrowserDidUpgradeInsecureRequests) = 0;
/* [infallible] readonly attribute boolean browserWouldUpgradeInsecureRequests; */
NS_IMETHOD GetBrowserWouldUpgradeInsecureRequests(bool *aBrowserWouldUpgradeInsecureRequests) = 0;
inline bool GetBrowserWouldUpgradeInsecureRequests()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetBrowserWouldUpgradeInsecureRequests(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] attribute boolean forceAllowDataURI; */
NS_IMETHOD GetForceAllowDataURI(bool *aForceAllowDataURI) = 0;
inline bool GetForceAllowDataURI()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetForceAllowDataURI(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetForceAllowDataURI(bool aForceAllowDataURI) = 0;
/* [infallible] attribute boolean allowInsecureRedirectToDataURI; */
NS_IMETHOD GetAllowInsecureRedirectToDataURI(bool *aAllowInsecureRedirectToDataURI) = 0;
inline bool GetAllowInsecureRedirectToDataURI()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetAllowInsecureRedirectToDataURI(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetAllowInsecureRedirectToDataURI(bool aAllowInsecureRedirectToDataURI) = 0;
/* [infallible] attribute boolean skipContentPolicyCheckForWebRequest; */
NS_IMETHOD GetSkipContentPolicyCheckForWebRequest(bool *aSkipContentPolicyCheckForWebRequest) = 0;
inline bool GetSkipContentPolicyCheckForWebRequest()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetSkipContentPolicyCheckForWebRequest(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetSkipContentPolicyCheckForWebRequest(bool aSkipContentPolicyCheckForWebRequest) = 0;
/* [infallible] attribute boolean originalFrameSrcLoad; */
NS_IMETHOD GetOriginalFrameSrcLoad(bool *aOriginalFrameSrcLoad) = 0;
inline bool GetOriginalFrameSrcLoad()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetOriginalFrameSrcLoad(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetOriginalFrameSrcLoad(bool aOriginalFrameSrcLoad) = 0;
/* [infallible] readonly attribute boolean forceInheritPrincipalDropped; */
NS_IMETHOD GetForceInheritPrincipalDropped(bool *aForceInheritPrincipalDropped) = 0;
inline bool GetForceInheritPrincipalDropped()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetForceInheritPrincipalDropped(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute unsigned long long innerWindowID; */
NS_IMETHOD GetInnerWindowID(uint64_t *aInnerWindowID) = 0;
inline uint64_t GetInnerWindowID()
{
uint64_t result;
mozilla::DebugOnly<nsresult> rv = GetInnerWindowID(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute unsigned long long browsingContextID; */
NS_IMETHOD GetBrowsingContextID(uint64_t *aBrowsingContextID) = 0;
inline uint64_t GetBrowsingContextID()
{
uint64_t result;
mozilla::DebugOnly<nsresult> rv = GetBrowsingContextID(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute BrowsingContext browsingContext; */
NS_IMETHOD GetBrowsingContext(mozilla::dom::BrowsingContext **aBrowsingContext) = 0;
inline already_AddRefed<mozilla::dom::BrowsingContext> GetBrowsingContext()
{
mozilla::dom::BrowsingContext* result = nullptr;
mozilla::DebugOnly<nsresult> rv = GetBrowsingContext(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return already_AddRefed<mozilla::dom::BrowsingContext>(result);
}
/* [infallible] attribute unsigned long long workerAssociatedBrowsingContextID; */
NS_IMETHOD GetWorkerAssociatedBrowsingContextID(uint64_t *aWorkerAssociatedBrowsingContextID) = 0;
inline uint64_t GetWorkerAssociatedBrowsingContextID()
{
uint64_t result;
mozilla::DebugOnly<nsresult> rv = GetWorkerAssociatedBrowsingContextID(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetWorkerAssociatedBrowsingContextID(uint64_t aWorkerAssociatedBrowsingContextID) = 0;
/* [infallible] readonly attribute BrowsingContext workerAssociatedBrowsingContext; */
NS_IMETHOD GetWorkerAssociatedBrowsingContext(mozilla::dom::BrowsingContext **aWorkerAssociatedBrowsingContext) = 0;
inline already_AddRefed<mozilla::dom::BrowsingContext> GetWorkerAssociatedBrowsingContext()
{
mozilla::dom::BrowsingContext* result = nullptr;
mozilla::DebugOnly<nsresult> rv = GetWorkerAssociatedBrowsingContext(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return already_AddRefed<mozilla::dom::BrowsingContext>(result);
}
/* [infallible] readonly attribute unsigned long long frameBrowsingContextID; */
NS_IMETHOD GetFrameBrowsingContextID(uint64_t *aFrameBrowsingContextID) = 0;
inline uint64_t GetFrameBrowsingContextID()
{
uint64_t result;
mozilla::DebugOnly<nsresult> rv = GetFrameBrowsingContextID(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute BrowsingContext frameBrowsingContext; */
NS_IMETHOD GetFrameBrowsingContext(mozilla::dom::BrowsingContext **aFrameBrowsingContext) = 0;
inline already_AddRefed<mozilla::dom::BrowsingContext> GetFrameBrowsingContext()
{
mozilla::dom::BrowsingContext* result = nullptr;
mozilla::DebugOnly<nsresult> rv = GetFrameBrowsingContext(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return already_AddRefed<mozilla::dom::BrowsingContext>(result);
}
/* [infallible] readonly attribute unsigned long long targetBrowsingContextID; */
NS_IMETHOD GetTargetBrowsingContextID(uint64_t *aTargetBrowsingContextID) = 0;
inline uint64_t GetTargetBrowsingContextID()
{
uint64_t result;
mozilla::DebugOnly<nsresult> rv = GetTargetBrowsingContextID(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute BrowsingContext targetBrowsingContext; */
NS_IMETHOD GetTargetBrowsingContext(mozilla::dom::BrowsingContext **aTargetBrowsingContext) = 0;
inline already_AddRefed<mozilla::dom::BrowsingContext> GetTargetBrowsingContext()
{
mozilla::dom::BrowsingContext* result = nullptr;
mozilla::DebugOnly<nsresult> rv = GetTargetBrowsingContext(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return already_AddRefed<mozilla::dom::BrowsingContext>(result);
}
/* void resetPrincipalToInheritToNullPrincipal (); */
NS_IMETHOD ResetPrincipalToInheritToNullPrincipal(void) = 0;
/* [binaryname(ScriptableOriginAttributes),implicit_jscontext] attribute jsval originAttributes; */
NS_IMETHOD GetScriptableOriginAttributes(JSContext* cx, JS::MutableHandle<JS::Value> aOriginAttributes) = 0;
NS_IMETHOD SetScriptableOriginAttributes(JSContext* cx, JS::Handle<JS::Value> aOriginAttributes) = 0;
/* [binaryname(GetOriginAttributes),noscript,nostdcall] OriginAttributes binaryGetOriginAttributes (); */
virtual nsresult GetOriginAttributes(mozilla::OriginAttributes * _retval) = 0;
/* [binaryname(SetOriginAttributes),noscript,nostdcall] void binarySetOriginAttributes (in const_OriginAttributesRef aOriginAttrs); */
virtual nsresult SetOriginAttributes(const mozilla::OriginAttributes & aOriginAttrs) = 0;
inline mozilla::OriginAttributes GetOriginAttributes()
{
mozilla::OriginAttributes result;
mozilla::DebugOnly<nsresult> rv = GetOriginAttributes(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] attribute boolean initialSecurityCheckDone; */
NS_IMETHOD GetInitialSecurityCheckDone(bool *aInitialSecurityCheckDone) = 0;
inline bool GetInitialSecurityCheckDone()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetInitialSecurityCheckDone(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetInitialSecurityCheckDone(bool aInitialSecurityCheckDone) = 0;
/* [infallible] attribute boolean loadTriggeredFromExternal; */
NS_IMETHOD GetLoadTriggeredFromExternal(bool *aLoadTriggeredFromExternal) = 0;
inline bool GetLoadTriggeredFromExternal()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetLoadTriggeredFromExternal(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetLoadTriggeredFromExternal(bool aLoadTriggeredFromExternal) = 0;
/* [infallible,noscript] readonly attribute boolean serviceWorkerTaintingSynthesized; */
NS_IMETHOD GetServiceWorkerTaintingSynthesized(bool *aServiceWorkerTaintingSynthesized) = 0;
inline bool GetServiceWorkerTaintingSynthesized()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetServiceWorkerTaintingSynthesized(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* void appendRedirectHistoryEntry (in nsIChannel channelToDeriveFrom, in boolean isInternalRedirect); */
NS_IMETHOD AppendRedirectHistoryEntry(nsIChannel *channelToDeriveFrom, bool isInternalRedirect) = 0;
/* [implicit_jscontext] readonly attribute jsval redirectChainIncludingInternalRedirects; */
NS_IMETHOD GetRedirectChainIncludingInternalRedirects(JSContext* cx, JS::MutableHandle<JS::Value> aRedirectChainIncludingInternalRedirects) = 0;
/* [binaryname(RedirectChainIncludingInternalRedirects),noscript,nostdcall,notxpcom] nsIRedirectHistoryEntryArray binaryRedirectChainIncludingInternalRedirects (); */
virtual const nsTArray<nsCOMPtr<nsIRedirectHistoryEntry>> & RedirectChainIncludingInternalRedirects(void) = 0;
/* [implicit_jscontext] readonly attribute jsval redirectChain; */
NS_IMETHOD GetRedirectChain(JSContext* cx, JS::MutableHandle<JS::Value> aRedirectChain) = 0;
/* [binaryname(RedirectChain),noscript,nostdcall,notxpcom] nsIRedirectHistoryEntryArray binaryRedirectChain (); */
virtual const nsTArray<nsCOMPtr<nsIRedirectHistoryEntry>> & RedirectChain(void) = 0;
/* [noscript,nostdcall,notxpcom] PrincipalArrayRef AncestorPrincipals (); */
virtual const nsTArray<nsCOMPtr<nsIPrincipal>> & AncestorPrincipals(void) = 0;
/* [noscript,nostdcall,notxpcom] Uint64ArrayRef AncestorBrowsingContextIDs (); */
virtual const nsTArray<uint64_t> & AncestorBrowsingContextIDs(void) = 0;
/* [noscript,nostdcall,notxpcom] void setCorsPreflightInfo (in CStringArrayRef unsafeHeaders, in boolean forcePreflight); */
virtual void SetCorsPreflightInfo(const nsTArray<nsCString> & unsafeHeaders, bool forcePreflight) = 0;
/* [binaryname(CorsUnsafeHeaders),noscript,nostdcall,notxpcom] CStringArrayRef corsUnsafeHeaders (); */
virtual const nsTArray<nsCString> & CorsUnsafeHeaders(void) = 0;
/* [infallible] readonly attribute boolean forcePreflight; */
NS_IMETHOD GetForcePreflight(bool *aForcePreflight) = 0;
inline bool GetForcePreflight()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetForcePreflight(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute boolean isPreflight; */
NS_IMETHOD GetIsPreflight(bool *aIsPreflight) = 0;
inline bool GetIsPreflight()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsPreflight(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
enum {
TAINTING_BASIC = 0U,
TAINTING_CORS = 1U,
TAINTING_OPAQUE = 2U
};
/* readonly attribute unsigned long tainting; */
NS_IMETHOD GetTainting(uint32_t *aTainting) = 0;
/* void maybeIncreaseTainting (in unsigned long aTainting); */
NS_IMETHOD MaybeIncreaseTainting(uint32_t aTainting) = 0;
static_assert(TAINTING_BASIC == static_cast<uint32_t>(mozilla::LoadTainting::Basic),
"basic tainting enums should match");
static_assert(TAINTING_CORS == static_cast<uint32_t>(mozilla::LoadTainting::CORS),
"cors tainting enums should match");
static_assert(TAINTING_OPAQUE == static_cast<uint32_t>(mozilla::LoadTainting::Opaque),
"opaque tainting enums should match");
mozilla::LoadTainting GetTainting()
{
uint32_t tainting = TAINTING_BASIC;
MOZ_ALWAYS_SUCCEEDS(GetTainting(&tainting));
return static_cast<mozilla::LoadTainting>(tainting);
}
void MaybeIncreaseTainting(mozilla::LoadTainting aTainting)
{
uint32_t tainting = static_cast<uint32_t>(aTainting);
MOZ_ALWAYS_SUCCEEDS(MaybeIncreaseTainting(tainting));
}
/* [infallible] readonly attribute boolean isTopLevelLoad; */
NS_IMETHOD GetIsTopLevelLoad(bool *aIsTopLevelLoad) = 0;
inline bool GetIsTopLevelLoad()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsTopLevelLoad(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* attribute nsIURI resultPrincipalURI; */
NS_IMETHOD GetResultPrincipalURI(nsIURI **aResultPrincipalURI) = 0;
NS_IMETHOD SetResultPrincipalURI(nsIURI *aResultPrincipalURI) = 0;
/* attribute nsIURI channelCreationOriginalURI; */
NS_IMETHOD GetChannelCreationOriginalURI(nsIURI **aChannelCreationOriginalURI) = 0;
NS_IMETHOD SetChannelCreationOriginalURI(nsIURI *aChannelCreationOriginalURI) = 0;
/* [noscript,nostdcall,notxpcom] nsIDRef GetSandboxedNullPrincipalID (); */
virtual const nsID & GetSandboxedNullPrincipalID(void) = 0;
/* [noscript,nostdcall,notxpcom] void ResetSandboxedNullPrincipalID (); */
virtual void ResetSandboxedNullPrincipalID(void) = 0;
/* [nostdcall,notxpcom] readonly attribute nsIPrincipal topLevelPrincipal; */
virtual nsIPrincipal * GetTopLevelPrincipal() = 0;
/* [noscript,nostdcall,notxpcom] void SetClientInfo (in const_ClientInfoRef aClientInfo); */
virtual void SetClientInfo(const mozilla::dom::ClientInfo & aClientInfo) = 0;
/* [noscript,nostdcall,notxpcom] const_MaybeClientInfoRef GetClientInfo (); */
virtual const mozilla::Maybe<mozilla::dom::ClientInfo> & GetClientInfo(void) = 0;
/* [noscript,nostdcall,notxpcom] void GiveReservedClientSource (in UniqueClientSourceMove aClientSource); */
virtual void GiveReservedClientSource(mozilla::UniquePtr<mozilla::dom::ClientSource>&& aClientSource) = 0;
/* [noscript,nostdcall,notxpcom] UniqueClientSource TakeReservedClientSource (); */
virtual mozilla::UniquePtr<mozilla::dom::ClientSource> TakeReservedClientSource(void) = 0;
/* [noscript,nostdcall,notxpcom] void SetReservedClientInfo (in const_ClientInfoRef aClientInfo); */
virtual void SetReservedClientInfo(const mozilla::dom::ClientInfo & aClientInfo) = 0;
/* [noscript,nostdcall,notxpcom] void OverrideReservedClientInfoInParent (in const_ClientInfoRef aClientInfo); */
virtual void OverrideReservedClientInfoInParent(const mozilla::dom::ClientInfo & aClientInfo) = 0;
/* [noscript,nostdcall,notxpcom] const_MaybeClientInfoRef GetReservedClientInfo (); */
virtual const mozilla::Maybe<mozilla::dom::ClientInfo> & GetReservedClientInfo(void) = 0;
/* [noscript,nostdcall,notxpcom] void SetInitialClientInfo (in const_ClientInfoRef aClientInfo); */
virtual void SetInitialClientInfo(const mozilla::dom::ClientInfo & aClientInfo) = 0;
/* [noscript,nostdcall,notxpcom] const_MaybeClientInfoRef GetInitialClientInfo (); */
virtual const mozilla::Maybe<mozilla::dom::ClientInfo> & GetInitialClientInfo(void) = 0;
/* [noscript,nostdcall,notxpcom] void SetController (in const_ServiceWorkerDescriptorRef aServiceWorker); */
virtual void SetController(const mozilla::dom::ServiceWorkerDescriptor & aServiceWorker) = 0;
/* [noscript,nostdcall,notxpcom] void ClearController (); */
virtual void ClearController(void) = 0;
/* [noscript,nostdcall,notxpcom] const_MaybeServiceWorkerDescriptorRef GetController (); */
virtual const mozilla::Maybe<mozilla::dom::ServiceWorkerDescriptor> & GetController(void) = 0;
/* [noscript,nostdcall,notxpcom] void SetPerformanceStorage (in PerformanceStoragePtr aPerformanceStorage); */
virtual void SetPerformanceStorage(mozilla::dom::PerformanceStorage * aPerformanceStorage) = 0;
/* [noscript,nostdcall,notxpcom] PerformanceStoragePtr GetPerformanceStorage (); */
virtual mozilla::dom::PerformanceStorage * GetPerformanceStorage(void) = 0;
/* [nostdcall,notxpcom] CSPRef GetCsp (); */
virtual already_AddRefed<nsIContentSecurityPolicy> GetCsp(void) = 0;
/* [nostdcall,notxpcom] CSPRef GetPreloadCsp (); */
virtual already_AddRefed<nsIContentSecurityPolicy> GetPreloadCsp(void) = 0;
/* [nostdcall,notxpcom] CSPRef GetCspToInherit (); */
virtual already_AddRefed<nsIContentSecurityPolicy> GetCspToInherit(void) = 0;
/* [noscript,nostdcall,notxpcom] MaybeFeaturePolicyInfo GetContainerFeaturePolicyInfo (); */
virtual mozilla::Maybe<mozilla::dom::FeaturePolicyInfo> GetContainerFeaturePolicyInfo(void) = 0;
/* [noscript,nostdcall,notxpcom] void SetContainerFeaturePolicyInfo (in const_FeaturePolicyInfoRef aContainerFeaturePolicy); */
virtual void SetContainerFeaturePolicyInfo(const mozilla::dom::FeaturePolicyInfo & aContainerFeaturePolicy) = 0;
/* [noscript,nostdcall,notxpcom] void SynthesizeServiceWorkerTainting (in LoadTainting aTainting); */
virtual void SynthesizeServiceWorkerTainting(mozilla::LoadTainting aTainting) = 0;
/* [infallible] attribute boolean documentHasUserInteracted; */
NS_IMETHOD GetDocumentHasUserInteracted(bool *aDocumentHasUserInteracted) = 0;
inline bool GetDocumentHasUserInteracted()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetDocumentHasUserInteracted(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetDocumentHasUserInteracted(bool aDocumentHasUserInteracted) = 0;
/* [infallible] attribute boolean allowListFutureDocumentsCreatedFromThisRedirectChain; */
NS_IMETHOD GetAllowListFutureDocumentsCreatedFromThisRedirectChain(bool *aAllowListFutureDocumentsCreatedFromThisRedirectChain) = 0;
inline bool GetAllowListFutureDocumentsCreatedFromThisRedirectChain()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetAllowListFutureDocumentsCreatedFromThisRedirectChain(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetAllowListFutureDocumentsCreatedFromThisRedirectChain(bool aAllowListFutureDocumentsCreatedFromThisRedirectChain) = 0;
/* [infallible] attribute boolean needForCheckingAntiTrackingHeuristic; */
NS_IMETHOD GetNeedForCheckingAntiTrackingHeuristic(bool *aNeedForCheckingAntiTrackingHeuristic) = 0;
inline bool GetNeedForCheckingAntiTrackingHeuristic()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetNeedForCheckingAntiTrackingHeuristic(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetNeedForCheckingAntiTrackingHeuristic(bool aNeedForCheckingAntiTrackingHeuristic) = 0;
/* attribute AString cspNonce; */
NS_IMETHOD GetCspNonce(nsAString& aCspNonce) = 0;
NS_IMETHOD SetCspNonce(const nsAString& aCspNonce) = 0;
/* attribute AString integrityMetadata; */
NS_IMETHOD GetIntegrityMetadata(nsAString& aIntegrityMetadata) = 0;
NS_IMETHOD SetIntegrityMetadata(const nsAString& aIntegrityMetadata) = 0;
enum {
BLOCKING_REASON_NONE = 0U,
BLOCKING_REASON_CORSDISABLED = 1001U,
BLOCKING_REASON_CORSDIDNOTSUCCEED = 1002U,
BLOCKING_REASON_CORSREQUESTNOTHTTP = 1003U,
BLOCKING_REASON_CORSMULTIPLEALLOWORIGINNOTALLOWED = 1004U,
BLOCKING_REASON_CORSMISSINGALLOWORIGIN = 1005U,
BLOCKING_REASON_CORSNOTSUPPORTINGCREDENTIALS = 1006U,
BLOCKING_REASON_CORSALLOWORIGINNOTMATCHINGORIGIN = 1007U,
BLOCKING_REASON_CORSMISSINGALLOWCREDENTIALS = 1008U,
BLOCKING_REASON_CORSORIGINHEADERNOTADDED = 1009U,
BLOCKING_REASON_CORSEXTERNALREDIRECTNOTALLOWED = 1010U,
BLOCKING_REASON_CORSPREFLIGHTDIDNOTSUCCEED = 1011U,
BLOCKING_REASON_CORSINVALIDALLOWMETHOD = 1012U,
BLOCKING_REASON_CORSMETHODNOTFOUND = 1013U,
BLOCKING_REASON_CORSINVALIDALLOWHEADER = 1014U,
BLOCKING_REASON_CORSMISSINGALLOWHEADERFROMPREFLIGHT = 1015U,
BLOCKING_REASON_CLASSIFY_MALWARE_URI = 2001U,
BLOCKING_REASON_CLASSIFY_PHISHING_URI = 2002U,
BLOCKING_REASON_CLASSIFY_UNWANTED_URI = 2003U,
BLOCKING_REASON_CLASSIFY_TRACKING_URI = 2004U,
BLOCKING_REASON_CLASSIFY_BLOCKED_URI = 2005U,
BLOCKING_REASON_CLASSIFY_HARMFUL_URI = 2006U,
BLOCKING_REASON_CLASSIFY_CRYPTOMINING_URI = 2007U,
BLOCKING_REASON_CLASSIFY_FINGERPRINTING_URI = 2008U,
BLOCKING_REASON_CLASSIFY_SOCIALTRACKING_URI = 2009U,
BLOCKING_REASON_CLASSIFY_EMAILTRACKING_URI = 2010U,
BLOCKING_REASON_MIXED_BLOCKED = 3001U,
BLOCKING_REASON_CONTENT_POLICY_GENERAL = 4000U,
BLOCKING_REASON_CONTENT_POLICY_NO_DATA_PROTOCOL = 4001U,
BLOCKING_REASON_CONTENT_POLICY_CONTENT_BLOCKED = 4003U,
BLOCKING_REASON_CONTENT_POLICY_DATA_DOCUMENT = 4004U,
BLOCKING_REASON_CONTENT_POLICY_WEB_BROWSER = 4005U,
BLOCKING_REASON_CONTENT_POLICY_PRELOAD = 4006U,
BLOCKING_REASON_NOT_SAME_ORIGIN = 5000U,
BLOCKING_REASON_EXTENSION_WEBREQUEST = 6000U,
BLOCKING_REASON_WEBDRIVER_BIDI = 7000U
};
/* [infallible] attribute unsigned long requestBlockingReason; */
NS_IMETHOD GetRequestBlockingReason(uint32_t *aRequestBlockingReason) = 0;
inline uint32_t GetRequestBlockingReason()
{
uint32_t result;
mozilla::DebugOnly<nsresult> rv = GetRequestBlockingReason(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetRequestBlockingReason(uint32_t aRequestBlockingReason) = 0;
/* attribute nsICSPEventListener cspEventListener; */
NS_IMETHOD GetCspEventListener(nsICSPEventListener **aCspEventListener) = 0;
NS_IMETHOD SetCspEventListener(nsICSPEventListener *aCspEventListener) = 0;
/* [infallible] readonly attribute boolean isFromProcessingFrameAttributes; */
NS_IMETHOD GetIsFromProcessingFrameAttributes(bool *aIsFromProcessingFrameAttributes) = 0;
inline bool GetIsFromProcessingFrameAttributes()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsFromProcessingFrameAttributes(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
enum CrossOriginOpenerPolicy : uint8_t {
OPENER_POLICY_UNSAFE_NONE = 0,
OPENER_POLICY_SAME_ORIGIN = 1,
OPENER_POLICY_SAME_ORIGIN_ALLOW_POPUPS = 2,
OPENER_POLICY_EMBEDDER_POLICY_REQUIRE_CORP_FLAG = 16,
OPENER_POLICY_SAME_ORIGIN_EMBEDDER_POLICY_REQUIRE_CORP = 17,
};
enum CrossOriginEmbedderPolicy : uint8_t {
EMBEDDER_POLICY_NULL = 0,
EMBEDDER_POLICY_REQUIRE_CORP = 1,
EMBEDDER_POLICY_CREDENTIALLESS = 2,
};
/* [infallible] attribute nsILoadInfo_CrossOriginEmbedderPolicy loadingEmbedderPolicy; */
NS_IMETHOD GetLoadingEmbedderPolicy(nsILoadInfo::CrossOriginEmbedderPolicy *aLoadingEmbedderPolicy) = 0;
inline nsILoadInfo::CrossOriginEmbedderPolicy GetLoadingEmbedderPolicy()
{
nsILoadInfo::CrossOriginEmbedderPolicy result;
mozilla::DebugOnly<nsresult> rv = GetLoadingEmbedderPolicy(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetLoadingEmbedderPolicy(nsILoadInfo::CrossOriginEmbedderPolicy aLoadingEmbedderPolicy) = 0;
/* [infallible] attribute boolean isOriginTrialCoepCredentiallessEnabledForTopLevel; */
NS_IMETHOD GetIsOriginTrialCoepCredentiallessEnabledForTopLevel(bool *aIsOriginTrialCoepCredentiallessEnabledForTopLevel) = 0;
inline bool GetIsOriginTrialCoepCredentiallessEnabledForTopLevel()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsOriginTrialCoepCredentiallessEnabledForTopLevel(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsOriginTrialCoepCredentiallessEnabledForTopLevel(bool aIsOriginTrialCoepCredentiallessEnabledForTopLevel) = 0;
/* [infallible] attribute boolean isMediaRequest; */
NS_IMETHOD GetIsMediaRequest(bool *aIsMediaRequest) = 0;
inline bool GetIsMediaRequest()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsMediaRequest(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsMediaRequest(bool aIsMediaRequest) = 0;
/* [infallible] attribute boolean isMediaInitialRequest; */
NS_IMETHOD GetIsMediaInitialRequest(bool *aIsMediaInitialRequest) = 0;
inline bool GetIsMediaInitialRequest()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsMediaInitialRequest(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsMediaInitialRequest(bool aIsMediaInitialRequest) = 0;
/* [infallible] attribute boolean isFromObjectOrEmbed; */
NS_IMETHOD GetIsFromObjectOrEmbed(bool *aIsFromObjectOrEmbed) = 0;
inline bool GetIsFromObjectOrEmbed()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsFromObjectOrEmbed(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsFromObjectOrEmbed(bool aIsFromObjectOrEmbed) = 0;
/* [infallible] readonly attribute boolean shouldSkipCheckForBrokenURLOrZeroSized; */
NS_IMETHOD GetShouldSkipCheckForBrokenURLOrZeroSized(bool *aShouldSkipCheckForBrokenURLOrZeroSized) = 0;
inline bool GetShouldSkipCheckForBrokenURLOrZeroSized()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetShouldSkipCheckForBrokenURLOrZeroSized(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* attribute nsIURI unstrippedURI; */
NS_IMETHOD GetUnstrippedURI(nsIURI **aUnstrippedURI) = 0;
NS_IMETHOD SetUnstrippedURI(nsIURI *aUnstrippedURI) = 0;
/* [binaryname(InterceptionInfo),noscript,nostdcall,notxpcom] nsIInterceptionInfo binaryInterceptionInfo (); */
virtual nsIInterceptionInfo * InterceptionInfo(void) = 0;
/* [binaryname(SetInterceptionInfo),noscript,nostdcall,notxpcom] void binarySetInterceptionInfo (in nsIInterceptionInfo info); */
virtual void SetInterceptionInfo(nsIInterceptionInfo *info) = 0;
/* [infallible] attribute boolean hasInjectedCookieForCookieBannerHandling; */
NS_IMETHOD GetHasInjectedCookieForCookieBannerHandling(bool *aHasInjectedCookieForCookieBannerHandling) = 0;
inline bool GetHasInjectedCookieForCookieBannerHandling()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetHasInjectedCookieForCookieBannerHandling(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetHasInjectedCookieForCookieBannerHandling(bool aHasInjectedCookieForCookieBannerHandling) = 0;
enum SchemelessInputType : uint8_t {
SchemelessInputTypeUnset = 0,
SchemelessInputTypeSchemeful = 1,
SchemelessInputTypeSchemeless = 2,
};
/* [infallible] attribute nsILoadInfo_SchemelessInputType schemelessInput; */
NS_IMETHOD GetSchemelessInput(nsILoadInfo::SchemelessInputType *aSchemelessInput) = 0;
inline nsILoadInfo::SchemelessInputType GetSchemelessInput()
{
nsILoadInfo::SchemelessInputType result;
mozilla::DebugOnly<nsresult> rv = GetSchemelessInput(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetSchemelessInput(nsILoadInfo::SchemelessInputType aSchemelessInput) = 0;
enum HTTPSUpgradeTelemetryType : uint32_t {
NOT_INITIALIZED = 0,
NO_UPGRADE = 1,
ALREADY_HTTPS = 2,
HSTS = 4,
HTTPS_ONLY_UPGRADE = 8,
HTTPS_ONLY_UPGRADE_DOWNGRADE = 16,
HTTPS_FIRST_UPGRADE = 32,
HTTPS_FIRST_UPGRADE_DOWNGRADE = 64,
HTTPS_FIRST_SCHEMELESS_UPGRADE = 128,
HTTPS_FIRST_SCHEMELESS_UPGRADE_DOWNGRADE = 256,
CSP_UIR = 512,
HTTPS_RR = 1024,
WEB_EXTENSION_UPGRADE = 2048,
UPGRADE_EXCEPTION = 4096,
SKIP_HTTPS_UPGRADE = 8192,
};
/* [infallible] attribute nsILoadInfo_HTTPSUpgradeTelemetryType httpsUpgradeTelemetry; */
NS_IMETHOD GetHttpsUpgradeTelemetry(nsILoadInfo::HTTPSUpgradeTelemetryType *aHttpsUpgradeTelemetry) = 0;
inline nsILoadInfo::HTTPSUpgradeTelemetryType GetHttpsUpgradeTelemetry()
{
nsILoadInfo::HTTPSUpgradeTelemetryType result;
mozilla::DebugOnly<nsresult> rv = GetHttpsUpgradeTelemetry(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetHttpsUpgradeTelemetry(nsILoadInfo::HTTPSUpgradeTelemetryType aHttpsUpgradeTelemetry) = 0;
/* [infallible] attribute boolean isNewWindowTarget; */
NS_IMETHOD GetIsNewWindowTarget(bool *aIsNewWindowTarget) = 0;
inline bool GetIsNewWindowTarget()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsNewWindowTarget(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsNewWindowTarget(bool aIsNewWindowTarget) = 0;
/* [infallible] attribute boolean skipHTTPSUpgrade; */
NS_IMETHOD GetSkipHTTPSUpgrade(bool *aSkipHTTPSUpgrade) = 0;
inline bool GetSkipHTTPSUpgrade()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetSkipHTTPSUpgrade(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetSkipHTTPSUpgrade(bool aSkipHTTPSUpgrade) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsILoadInfo, NS_ILOADINFO_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILOADINFO \
NS_IMETHOD GetLoadingPrincipal(nsIPrincipal **aLoadingPrincipal) override; \
virtual nsIPrincipal * VirtualGetLoadingPrincipal(void) override; \
NS_IMETHOD GetTriggeringPrincipal(nsIPrincipal **aTriggeringPrincipal) override; \
virtual nsIPrincipal * TriggeringPrincipal(void) override; \
NS_IMETHOD GetTriggeringRemoteType(nsACString& aTriggeringRemoteType) override; \
NS_IMETHOD SetTriggeringRemoteType(const nsACString& aTriggeringRemoteType) override; \
NS_IMETHOD GetPrincipalToInherit(nsIPrincipal **aPrincipalToInherit) override; \
NS_IMETHOD SetPrincipalToInherit(nsIPrincipal *aPrincipalToInherit) override; \
virtual nsIPrincipal * PrincipalToInherit(void) override; \
virtual nsIPrincipal * FindPrincipalToInherit(nsIChannel *aChannel) override; \
NS_IMETHOD GetLoadingDocument(mozilla::dom::Document **aLoadingDocument) override; \
virtual nsINode * LoadingNode(void) override; \
virtual already_AddRefed<nsISupports> ContextForTopLevelLoad(void) override; \
NS_IMETHOD GetLoadingContextXPCOM(nsISupports **aLoadingContext) override; \
virtual already_AddRefed<nsISupports> GetLoadingContext(void) override; \
NS_IMETHOD GetSecurityFlags(nsSecurityFlags *aSecurityFlags) override; \
using nsILoadInfo::GetSandboxFlags; \
NS_IMETHOD GetSandboxFlags(uint32_t *aSandboxFlags) override; \
using nsILoadInfo::GetTriggeringSandboxFlags; \
NS_IMETHOD GetTriggeringSandboxFlags(uint32_t *aTriggeringSandboxFlags) override; \
NS_IMETHOD SetTriggeringSandboxFlags(uint32_t aTriggeringSandboxFlags) override; \
using nsILoadInfo::GetTriggeringWindowId; \
NS_IMETHOD GetTriggeringWindowId(uint64_t *aTriggeringWindowId) override; \
NS_IMETHOD SetTriggeringWindowId(uint64_t aTriggeringWindowId) override; \
using nsILoadInfo::GetTriggeringStorageAccess; \
NS_IMETHOD GetTriggeringStorageAccess(bool *aTriggeringStorageAccess) override; \
NS_IMETHOD SetTriggeringStorageAccess(bool aTriggeringStorageAccess) override; \
using nsILoadInfo::GetSecurityMode; \
NS_IMETHOD GetSecurityMode(uint32_t *aSecurityMode) override; \
using nsILoadInfo::GetSkipContentSniffing; \
NS_IMETHOD GetSkipContentSniffing(bool *aSkipContentSniffing) override; \
NS_IMETHOD SetSkipContentSniffing(bool aSkipContentSniffing) override; \
using nsILoadInfo::GetHttpsOnlyStatus; \
NS_IMETHOD GetHttpsOnlyStatus(uint32_t *aHttpsOnlyStatus) override; \
NS_IMETHOD SetHttpsOnlyStatus(uint32_t aHttpsOnlyStatus) override; \
using nsILoadInfo::GetHstsStatus; \
NS_IMETHOD GetHstsStatus(bool *aHstsStatus) override; \
NS_IMETHOD SetHstsStatus(bool aHstsStatus) override; \
using nsILoadInfo::GetHasValidUserGestureActivation; \
NS_IMETHOD GetHasValidUserGestureActivation(bool *aHasValidUserGestureActivation) override; \
NS_IMETHOD SetHasValidUserGestureActivation(bool aHasValidUserGestureActivation) override; \
using nsILoadInfo::GetTextDirectiveUserActivation; \
NS_IMETHOD GetTextDirectiveUserActivation(bool *aTextDirectiveUserActivation) override; \
NS_IMETHOD SetTextDirectiveUserActivation(bool aTextDirectiveUserActivation) override; \
using nsILoadInfo::GetIsSameDocumentNavigation; \
NS_IMETHOD GetIsSameDocumentNavigation(bool *aIsSameDocumentNavigation) override; \
NS_IMETHOD SetIsSameDocumentNavigation(bool aIsSameDocumentNavigation) override; \
using nsILoadInfo::GetAllowDeprecatedSystemRequests; \
NS_IMETHOD GetAllowDeprecatedSystemRequests(bool *aAllowDeprecatedSystemRequests) override; \
NS_IMETHOD SetAllowDeprecatedSystemRequests(bool aAllowDeprecatedSystemRequests) override; \
using nsILoadInfo::GetParserCreatedScript; \
NS_IMETHOD GetParserCreatedScript(bool *aParserCreatedScript) override; \
NS_IMETHOD SetParserCreatedScript(bool aParserCreatedScript) override; \
using nsILoadInfo::GetIsUserTriggeredSave; \
NS_IMETHOD GetIsUserTriggeredSave(bool *aIsUserTriggeredSave) override; \
NS_IMETHOD SetIsUserTriggeredSave(bool aIsUserTriggeredSave) override; \
using nsILoadInfo::GetIsInDevToolsContext; \
NS_IMETHOD GetIsInDevToolsContext(bool *aIsInDevToolsContext) override; \
NS_IMETHOD SetIsInDevToolsContext(bool aIsInDevToolsContext) override; \
using nsILoadInfo::GetIsInThirdPartyContext; \
NS_IMETHOD GetIsInThirdPartyContext(bool *aIsInThirdPartyContext) override; \
NS_IMETHOD SetIsInThirdPartyContext(bool aIsInThirdPartyContext) override; \
using nsILoadInfo::GetIsThirdPartyContextToTopWindow; \
NS_IMETHOD GetIsThirdPartyContextToTopWindow(bool *aIsThirdPartyContextToTopWindow) override; \
NS_IMETHOD SetIsThirdPartyContextToTopWindow(bool aIsThirdPartyContextToTopWindow) override; \
using nsILoadInfo::GetCookiePolicy; \
NS_IMETHOD GetCookiePolicy(uint32_t *aCookiePolicy) override; \
NS_IMETHOD GetCookieJarSettings(nsICookieJarSettings **aCookieJarSettings) override; \
NS_IMETHOD SetCookieJarSettings(nsICookieJarSettings *aCookieJarSettings) override; \
using nsILoadInfo::GetStoragePermission; \
NS_IMETHOD GetStoragePermission(nsILoadInfo::StoragePermissionState *aStoragePermission) override; \
NS_IMETHOD SetStoragePermission(nsILoadInfo::StoragePermissionState aStoragePermission) override; \
virtual const mozilla::Maybe<mozilla::RFPTarget> & GetOverriddenFingerprintingSettings(void) override; \
virtual void SetOverriddenFingerprintingSettings(mozilla::RFPTarget aTargets) override; \
using nsILoadInfo::GetIsMetaRefresh; \
NS_IMETHOD GetIsMetaRefresh(bool *aIsMetaRefresh) override; \
NS_IMETHOD SetIsMetaRefresh(bool aIsMetaRefresh) override; \
using nsILoadInfo::GetForceInheritPrincipal; \
NS_IMETHOD GetForceInheritPrincipal(bool *aForceInheritPrincipal) override; \
using nsILoadInfo::GetForceInheritPrincipalOverruleOwner; \
NS_IMETHOD GetForceInheritPrincipalOverruleOwner(bool *aForceInheritPrincipalOverruleOwner) override; \
using nsILoadInfo::GetLoadingSandboxed; \
NS_IMETHOD GetLoadingSandboxed(bool *aLoadingSandboxed) override; \
using nsILoadInfo::GetAboutBlankInherits; \
NS_IMETHOD GetAboutBlankInherits(bool *aAboutBlankInherits) override; \
using nsILoadInfo::GetAllowChrome; \
NS_IMETHOD GetAllowChrome(bool *aAllowChrome) override; \
using nsILoadInfo::GetDisallowScript; \
NS_IMETHOD GetDisallowScript(bool *aDisallowScript) override; \
using nsILoadInfo::GetDontFollowRedirects; \
NS_IMETHOD GetDontFollowRedirects(bool *aDontFollowRedirects) override; \
using nsILoadInfo::GetLoadErrorPage; \
NS_IMETHOD GetLoadErrorPage(bool *aLoadErrorPage) override; \
using nsILoadInfo::GetIsFormSubmission; \
NS_IMETHOD GetIsFormSubmission(bool *aIsFormSubmission) override; \
NS_IMETHOD SetIsFormSubmission(bool aIsFormSubmission) override; \
using nsILoadInfo::GetIsGETRequest; \
NS_IMETHOD GetIsGETRequest(bool *aIsGETRequest) override; \
NS_IMETHOD SetIsGETRequest(bool aIsGETRequest) override; \
NS_IMETHOD GetExternalContentPolicyType(nsContentPolicyType *aExternalContentPolicyType) override; \
using nsILoadInfo::GetSendCSPViolationEvents; \
NS_IMETHOD GetSendCSPViolationEvents(bool *aSendCSPViolationEvents) override; \
NS_IMETHOD SetSendCSPViolationEvents(bool aSendCSPViolationEvents) override; \
virtual nsContentPolicyType InternalContentPolicyType(void) override; \
NS_IMETHOD GetInternalContentPolicyType(nsContentPolicyType *aInternalContentPolicyType) override; \
NS_IMETHOD GetFetchDestination(nsACString& aFetchDestination) override; \
using nsILoadInfo::GetBlockAllMixedContent; \
NS_IMETHOD GetBlockAllMixedContent(bool *aBlockAllMixedContent) override; \
using nsILoadInfo::GetUpgradeInsecureRequests; \
NS_IMETHOD GetUpgradeInsecureRequests(bool *aUpgradeInsecureRequests) override; \
using nsILoadInfo::GetBrowserUpgradeInsecureRequests; \
NS_IMETHOD GetBrowserUpgradeInsecureRequests(bool *aBrowserUpgradeInsecureRequests) override; \
using nsILoadInfo::GetBrowserDidUpgradeInsecureRequests; \
NS_IMETHOD GetBrowserDidUpgradeInsecureRequests(bool *aBrowserDidUpgradeInsecureRequests) override; \
NS_IMETHOD SetBrowserDidUpgradeInsecureRequests(bool aBrowserDidUpgradeInsecureRequests) override; \
using nsILoadInfo::GetBrowserWouldUpgradeInsecureRequests; \
NS_IMETHOD GetBrowserWouldUpgradeInsecureRequests(bool *aBrowserWouldUpgradeInsecureRequests) override; \
using nsILoadInfo::GetForceAllowDataURI; \
NS_IMETHOD GetForceAllowDataURI(bool *aForceAllowDataURI) override; \
NS_IMETHOD SetForceAllowDataURI(bool aForceAllowDataURI) override; \
using nsILoadInfo::GetAllowInsecureRedirectToDataURI; \
NS_IMETHOD GetAllowInsecureRedirectToDataURI(bool *aAllowInsecureRedirectToDataURI) override; \
NS_IMETHOD SetAllowInsecureRedirectToDataURI(bool aAllowInsecureRedirectToDataURI) override; \
using nsILoadInfo::GetSkipContentPolicyCheckForWebRequest; \
NS_IMETHOD GetSkipContentPolicyCheckForWebRequest(bool *aSkipContentPolicyCheckForWebRequest) override; \
NS_IMETHOD SetSkipContentPolicyCheckForWebRequest(bool aSkipContentPolicyCheckForWebRequest) override; \
using nsILoadInfo::GetOriginalFrameSrcLoad; \
NS_IMETHOD GetOriginalFrameSrcLoad(bool *aOriginalFrameSrcLoad) override; \
NS_IMETHOD SetOriginalFrameSrcLoad(bool aOriginalFrameSrcLoad) override; \
using nsILoadInfo::GetForceInheritPrincipalDropped; \
NS_IMETHOD GetForceInheritPrincipalDropped(bool *aForceInheritPrincipalDropped) override; \
using nsILoadInfo::GetInnerWindowID; \
NS_IMETHOD GetInnerWindowID(uint64_t *aInnerWindowID) override; \
using nsILoadInfo::GetBrowsingContextID; \
NS_IMETHOD GetBrowsingContextID(uint64_t *aBrowsingContextID) override; \
using nsILoadInfo::GetBrowsingContext; \
NS_IMETHOD GetBrowsingContext(mozilla::dom::BrowsingContext **aBrowsingContext) override; \
using nsILoadInfo::GetWorkerAssociatedBrowsingContextID; \
NS_IMETHOD GetWorkerAssociatedBrowsingContextID(uint64_t *aWorkerAssociatedBrowsingContextID) override; \
NS_IMETHOD SetWorkerAssociatedBrowsingContextID(uint64_t aWorkerAssociatedBrowsingContextID) override; \
using nsILoadInfo::GetWorkerAssociatedBrowsingContext; \
NS_IMETHOD GetWorkerAssociatedBrowsingContext(mozilla::dom::BrowsingContext **aWorkerAssociatedBrowsingContext) override; \
using nsILoadInfo::GetFrameBrowsingContextID; \
NS_IMETHOD GetFrameBrowsingContextID(uint64_t *aFrameBrowsingContextID) override; \
using nsILoadInfo::GetFrameBrowsingContext; \
NS_IMETHOD GetFrameBrowsingContext(mozilla::dom::BrowsingContext **aFrameBrowsingContext) override; \
using nsILoadInfo::GetTargetBrowsingContextID; \
NS_IMETHOD GetTargetBrowsingContextID(uint64_t *aTargetBrowsingContextID) override; \
using nsILoadInfo::GetTargetBrowsingContext; \
NS_IMETHOD GetTargetBrowsingContext(mozilla::dom::BrowsingContext **aTargetBrowsingContext) override; \
NS_IMETHOD ResetPrincipalToInheritToNullPrincipal(void) override; \
NS_IMETHOD GetScriptableOriginAttributes(JSContext* cx, JS::MutableHandle<JS::Value> aOriginAttributes) override; \
NS_IMETHOD SetScriptableOriginAttributes(JSContext* cx, JS::Handle<JS::Value> aOriginAttributes) override; \
virtual nsresult GetOriginAttributes(mozilla::OriginAttributes * _retval) override; \
virtual nsresult SetOriginAttributes(const mozilla::OriginAttributes & aOriginAttrs) override; \
using nsILoadInfo::GetInitialSecurityCheckDone; \
NS_IMETHOD GetInitialSecurityCheckDone(bool *aInitialSecurityCheckDone) override; \
NS_IMETHOD SetInitialSecurityCheckDone(bool aInitialSecurityCheckDone) override; \
using nsILoadInfo::GetLoadTriggeredFromExternal; \
NS_IMETHOD GetLoadTriggeredFromExternal(bool *aLoadTriggeredFromExternal) override; \
NS_IMETHOD SetLoadTriggeredFromExternal(bool aLoadTriggeredFromExternal) override; \
using nsILoadInfo::GetServiceWorkerTaintingSynthesized; \
NS_IMETHOD GetServiceWorkerTaintingSynthesized(bool *aServiceWorkerTaintingSynthesized) override; \
NS_IMETHOD AppendRedirectHistoryEntry(nsIChannel *channelToDeriveFrom, bool isInternalRedirect) override; \
NS_IMETHOD GetRedirectChainIncludingInternalRedirects(JSContext* cx, JS::MutableHandle<JS::Value> aRedirectChainIncludingInternalRedirects) override; \
virtual const nsTArray<nsCOMPtr<nsIRedirectHistoryEntry>> & RedirectChainIncludingInternalRedirects(void) override; \
NS_IMETHOD GetRedirectChain(JSContext* cx, JS::MutableHandle<JS::Value> aRedirectChain) override; \
virtual const nsTArray<nsCOMPtr<nsIRedirectHistoryEntry>> & RedirectChain(void) override; \
virtual const nsTArray<nsCOMPtr<nsIPrincipal>> & AncestorPrincipals(void) override; \
virtual const nsTArray<uint64_t> & AncestorBrowsingContextIDs(void) override; \
virtual void SetCorsPreflightInfo(const nsTArray<nsCString> & unsafeHeaders, bool forcePreflight) override; \
virtual const nsTArray<nsCString> & CorsUnsafeHeaders(void) override; \
using nsILoadInfo::GetForcePreflight; \
NS_IMETHOD GetForcePreflight(bool *aForcePreflight) override; \
using nsILoadInfo::GetIsPreflight; \
NS_IMETHOD GetIsPreflight(bool *aIsPreflight) override; \
NS_IMETHOD GetTainting(uint32_t *aTainting) override; \
NS_IMETHOD MaybeIncreaseTainting(uint32_t aTainting) override; \
using nsILoadInfo::GetIsTopLevelLoad; \
NS_IMETHOD GetIsTopLevelLoad(bool *aIsTopLevelLoad) override; \
NS_IMETHOD GetResultPrincipalURI(nsIURI **aResultPrincipalURI) override; \
NS_IMETHOD SetResultPrincipalURI(nsIURI *aResultPrincipalURI) override; \
NS_IMETHOD GetChannelCreationOriginalURI(nsIURI **aChannelCreationOriginalURI) override; \
NS_IMETHOD SetChannelCreationOriginalURI(nsIURI *aChannelCreationOriginalURI) override; \
virtual const nsID & GetSandboxedNullPrincipalID(void) override; \
virtual void ResetSandboxedNullPrincipalID(void) override; \
virtual nsIPrincipal * GetTopLevelPrincipal() override; \
virtual void SetClientInfo(const mozilla::dom::ClientInfo & aClientInfo) override; \
virtual const mozilla::Maybe<mozilla::dom::ClientInfo> & GetClientInfo(void) override; \
virtual void GiveReservedClientSource(mozilla::UniquePtr<mozilla::dom::ClientSource>&& aClientSource) override; \
virtual mozilla::UniquePtr<mozilla::dom::ClientSource> TakeReservedClientSource(void) override; \
virtual void SetReservedClientInfo(const mozilla::dom::ClientInfo & aClientInfo) override; \
virtual void OverrideReservedClientInfoInParent(const mozilla::dom::ClientInfo & aClientInfo) override; \
virtual const mozilla::Maybe<mozilla::dom::ClientInfo> & GetReservedClientInfo(void) override; \
virtual void SetInitialClientInfo(const mozilla::dom::ClientInfo & aClientInfo) override; \
virtual const mozilla::Maybe<mozilla::dom::ClientInfo> & GetInitialClientInfo(void) override; \
virtual void SetController(const mozilla::dom::ServiceWorkerDescriptor & aServiceWorker) override; \
virtual void ClearController(void) override; \
virtual const mozilla::Maybe<mozilla::dom::ServiceWorkerDescriptor> & GetController(void) override; \
virtual void SetPerformanceStorage(mozilla::dom::PerformanceStorage * aPerformanceStorage) override; \
virtual mozilla::dom::PerformanceStorage * GetPerformanceStorage(void) override; \
virtual already_AddRefed<nsIContentSecurityPolicy> GetCsp(void) override; \
virtual already_AddRefed<nsIContentSecurityPolicy> GetPreloadCsp(void) override; \
virtual already_AddRefed<nsIContentSecurityPolicy> GetCspToInherit(void) override; \
virtual mozilla::Maybe<mozilla::dom::FeaturePolicyInfo> GetContainerFeaturePolicyInfo(void) override; \
virtual void SetContainerFeaturePolicyInfo(const mozilla::dom::FeaturePolicyInfo & aContainerFeaturePolicy) override; \
virtual void SynthesizeServiceWorkerTainting(mozilla::LoadTainting aTainting) override; \
using nsILoadInfo::GetDocumentHasUserInteracted; \
NS_IMETHOD GetDocumentHasUserInteracted(bool *aDocumentHasUserInteracted) override; \
NS_IMETHOD SetDocumentHasUserInteracted(bool aDocumentHasUserInteracted) override; \
using nsILoadInfo::GetAllowListFutureDocumentsCreatedFromThisRedirectChain; \
NS_IMETHOD GetAllowListFutureDocumentsCreatedFromThisRedirectChain(bool *aAllowListFutureDocumentsCreatedFromThisRedirectChain) override; \
NS_IMETHOD SetAllowListFutureDocumentsCreatedFromThisRedirectChain(bool aAllowListFutureDocumentsCreatedFromThisRedirectChain) override; \
using nsILoadInfo::GetNeedForCheckingAntiTrackingHeuristic; \
NS_IMETHOD GetNeedForCheckingAntiTrackingHeuristic(bool *aNeedForCheckingAntiTrackingHeuristic) override; \
NS_IMETHOD SetNeedForCheckingAntiTrackingHeuristic(bool aNeedForCheckingAntiTrackingHeuristic) override; \
NS_IMETHOD GetCspNonce(nsAString& aCspNonce) override; \
NS_IMETHOD SetCspNonce(const nsAString& aCspNonce) override; \
NS_IMETHOD GetIntegrityMetadata(nsAString& aIntegrityMetadata) override; \
NS_IMETHOD SetIntegrityMetadata(const nsAString& aIntegrityMetadata) override; \
using nsILoadInfo::GetRequestBlockingReason; \
NS_IMETHOD GetRequestBlockingReason(uint32_t *aRequestBlockingReason) override; \
NS_IMETHOD SetRequestBlockingReason(uint32_t aRequestBlockingReason) override; \
NS_IMETHOD GetCspEventListener(nsICSPEventListener **aCspEventListener) override; \
NS_IMETHOD SetCspEventListener(nsICSPEventListener *aCspEventListener) override; \
using nsILoadInfo::GetIsFromProcessingFrameAttributes; \
NS_IMETHOD GetIsFromProcessingFrameAttributes(bool *aIsFromProcessingFrameAttributes) override; \
using nsILoadInfo::GetLoadingEmbedderPolicy; \
NS_IMETHOD GetLoadingEmbedderPolicy(nsILoadInfo::CrossOriginEmbedderPolicy *aLoadingEmbedderPolicy) override; \
NS_IMETHOD SetLoadingEmbedderPolicy(nsILoadInfo::CrossOriginEmbedderPolicy aLoadingEmbedderPolicy) override; \
using nsILoadInfo::GetIsOriginTrialCoepCredentiallessEnabledForTopLevel; \
NS_IMETHOD GetIsOriginTrialCoepCredentiallessEnabledForTopLevel(bool *aIsOriginTrialCoepCredentiallessEnabledForTopLevel) override; \
NS_IMETHOD SetIsOriginTrialCoepCredentiallessEnabledForTopLevel(bool aIsOriginTrialCoepCredentiallessEnabledForTopLevel) override; \
using nsILoadInfo::GetIsMediaRequest; \
NS_IMETHOD GetIsMediaRequest(bool *aIsMediaRequest) override; \
NS_IMETHOD SetIsMediaRequest(bool aIsMediaRequest) override; \
using nsILoadInfo::GetIsMediaInitialRequest; \
NS_IMETHOD GetIsMediaInitialRequest(bool *aIsMediaInitialRequest) override; \
NS_IMETHOD SetIsMediaInitialRequest(bool aIsMediaInitialRequest) override; \
using nsILoadInfo::GetIsFromObjectOrEmbed; \
NS_IMETHOD GetIsFromObjectOrEmbed(bool *aIsFromObjectOrEmbed) override; \
NS_IMETHOD SetIsFromObjectOrEmbed(bool aIsFromObjectOrEmbed) override; \
using nsILoadInfo::GetShouldSkipCheckForBrokenURLOrZeroSized; \
NS_IMETHOD GetShouldSkipCheckForBrokenURLOrZeroSized(bool *aShouldSkipCheckForBrokenURLOrZeroSized) override; \
NS_IMETHOD GetUnstrippedURI(nsIURI **aUnstrippedURI) override; \
NS_IMETHOD SetUnstrippedURI(nsIURI *aUnstrippedURI) override; \
virtual nsIInterceptionInfo * InterceptionInfo(void) override; \
virtual void SetInterceptionInfo(nsIInterceptionInfo *info) override; \
using nsILoadInfo::GetHasInjectedCookieForCookieBannerHandling; \
NS_IMETHOD GetHasInjectedCookieForCookieBannerHandling(bool *aHasInjectedCookieForCookieBannerHandling) override; \
NS_IMETHOD SetHasInjectedCookieForCookieBannerHandling(bool aHasInjectedCookieForCookieBannerHandling) override; \
using nsILoadInfo::GetSchemelessInput; \
NS_IMETHOD GetSchemelessInput(nsILoadInfo::SchemelessInputType *aSchemelessInput) override; \
NS_IMETHOD SetSchemelessInput(nsILoadInfo::SchemelessInputType aSchemelessInput) override; \
using nsILoadInfo::GetHttpsUpgradeTelemetry; \
NS_IMETHOD GetHttpsUpgradeTelemetry(nsILoadInfo::HTTPSUpgradeTelemetryType *aHttpsUpgradeTelemetry) override; \
NS_IMETHOD SetHttpsUpgradeTelemetry(nsILoadInfo::HTTPSUpgradeTelemetryType aHttpsUpgradeTelemetry) override; \
using nsILoadInfo::GetIsNewWindowTarget; \
NS_IMETHOD GetIsNewWindowTarget(bool *aIsNewWindowTarget) override; \
NS_IMETHOD SetIsNewWindowTarget(bool aIsNewWindowTarget) override; \
using nsILoadInfo::GetSkipHTTPSUpgrade; \
NS_IMETHOD GetSkipHTTPSUpgrade(bool *aSkipHTTPSUpgrade) override; \
NS_IMETHOD SetSkipHTTPSUpgrade(bool aSkipHTTPSUpgrade) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSILOADINFO \
nsresult GetLoadingPrincipal(nsIPrincipal **aLoadingPrincipal); \
nsIPrincipal * VirtualGetLoadingPrincipal(void); \
nsresult GetTriggeringPrincipal(nsIPrincipal **aTriggeringPrincipal); \
nsIPrincipal * TriggeringPrincipal(void); \
nsresult GetTriggeringRemoteType(nsACString& aTriggeringRemoteType); \
nsresult SetTriggeringRemoteType(const nsACString& aTriggeringRemoteType); \
nsresult GetPrincipalToInherit(nsIPrincipal **aPrincipalToInherit); \
nsresult SetPrincipalToInherit(nsIPrincipal *aPrincipalToInherit); \
nsIPrincipal * PrincipalToInherit(void); \
nsIPrincipal * FindPrincipalToInherit(nsIChannel *aChannel); \
nsresult GetLoadingDocument(mozilla::dom::Document **aLoadingDocument); \
nsINode * LoadingNode(void); \
already_AddRefed<nsISupports> ContextForTopLevelLoad(void); \
nsresult GetLoadingContextXPCOM(nsISupports **aLoadingContext); \
already_AddRefed<nsISupports> GetLoadingContext(void); \
nsresult GetSecurityFlags(nsSecurityFlags *aSecurityFlags); \
using nsILoadInfo::GetSandboxFlags; \
nsresult GetSandboxFlags(uint32_t *aSandboxFlags); \
using nsILoadInfo::GetTriggeringSandboxFlags; \
nsresult GetTriggeringSandboxFlags(uint32_t *aTriggeringSandboxFlags); \
nsresult SetTriggeringSandboxFlags(uint32_t aTriggeringSandboxFlags); \
using nsILoadInfo::GetTriggeringWindowId; \
nsresult GetTriggeringWindowId(uint64_t *aTriggeringWindowId); \
nsresult SetTriggeringWindowId(uint64_t aTriggeringWindowId); \
using nsILoadInfo::GetTriggeringStorageAccess; \
nsresult GetTriggeringStorageAccess(bool *aTriggeringStorageAccess); \
nsresult SetTriggeringStorageAccess(bool aTriggeringStorageAccess); \
using nsILoadInfo::GetSecurityMode; \
nsresult GetSecurityMode(uint32_t *aSecurityMode); \
using nsILoadInfo::GetSkipContentSniffing; \
nsresult GetSkipContentSniffing(bool *aSkipContentSniffing); \
nsresult SetSkipContentSniffing(bool aSkipContentSniffing); \
using nsILoadInfo::GetHttpsOnlyStatus; \
nsresult GetHttpsOnlyStatus(uint32_t *aHttpsOnlyStatus); \
nsresult SetHttpsOnlyStatus(uint32_t aHttpsOnlyStatus); \
using nsILoadInfo::GetHstsStatus; \
nsresult GetHstsStatus(bool *aHstsStatus); \
nsresult SetHstsStatus(bool aHstsStatus); \
using nsILoadInfo::GetHasValidUserGestureActivation; \
nsresult GetHasValidUserGestureActivation(bool *aHasValidUserGestureActivation); \
nsresult SetHasValidUserGestureActivation(bool aHasValidUserGestureActivation); \
using nsILoadInfo::GetTextDirectiveUserActivation; \
nsresult GetTextDirectiveUserActivation(bool *aTextDirectiveUserActivation); \
nsresult SetTextDirectiveUserActivation(bool aTextDirectiveUserActivation); \
using nsILoadInfo::GetIsSameDocumentNavigation; \
nsresult GetIsSameDocumentNavigation(bool *aIsSameDocumentNavigation); \
nsresult SetIsSameDocumentNavigation(bool aIsSameDocumentNavigation); \
using nsILoadInfo::GetAllowDeprecatedSystemRequests; \
nsresult GetAllowDeprecatedSystemRequests(bool *aAllowDeprecatedSystemRequests); \
nsresult SetAllowDeprecatedSystemRequests(bool aAllowDeprecatedSystemRequests); \
using nsILoadInfo::GetParserCreatedScript; \
nsresult GetParserCreatedScript(bool *aParserCreatedScript); \
nsresult SetParserCreatedScript(bool aParserCreatedScript); \
using nsILoadInfo::GetIsUserTriggeredSave; \
nsresult GetIsUserTriggeredSave(bool *aIsUserTriggeredSave); \
nsresult SetIsUserTriggeredSave(bool aIsUserTriggeredSave); \
using nsILoadInfo::GetIsInDevToolsContext; \
nsresult GetIsInDevToolsContext(bool *aIsInDevToolsContext); \
nsresult SetIsInDevToolsContext(bool aIsInDevToolsContext); \
using nsILoadInfo::GetIsInThirdPartyContext; \
nsresult GetIsInThirdPartyContext(bool *aIsInThirdPartyContext); \
nsresult SetIsInThirdPartyContext(bool aIsInThirdPartyContext); \
using nsILoadInfo::GetIsThirdPartyContextToTopWindow; \
nsresult GetIsThirdPartyContextToTopWindow(bool *aIsThirdPartyContextToTopWindow); \
nsresult SetIsThirdPartyContextToTopWindow(bool aIsThirdPartyContextToTopWindow); \
using nsILoadInfo::GetCookiePolicy; \
nsresult GetCookiePolicy(uint32_t *aCookiePolicy); \
nsresult GetCookieJarSettings(nsICookieJarSettings **aCookieJarSettings); \
nsresult SetCookieJarSettings(nsICookieJarSettings *aCookieJarSettings); \
using nsILoadInfo::GetStoragePermission; \
nsresult GetStoragePermission(nsILoadInfo::StoragePermissionState *aStoragePermission); \
nsresult SetStoragePermission(nsILoadInfo::StoragePermissionState aStoragePermission); \
const mozilla::Maybe<mozilla::RFPTarget> & GetOverriddenFingerprintingSettings(void); \
void SetOverriddenFingerprintingSettings(mozilla::RFPTarget aTargets); \
using nsILoadInfo::GetIsMetaRefresh; \
nsresult GetIsMetaRefresh(bool *aIsMetaRefresh); \
nsresult SetIsMetaRefresh(bool aIsMetaRefresh); \
using nsILoadInfo::GetForceInheritPrincipal; \
nsresult GetForceInheritPrincipal(bool *aForceInheritPrincipal); \
using nsILoadInfo::GetForceInheritPrincipalOverruleOwner; \
nsresult GetForceInheritPrincipalOverruleOwner(bool *aForceInheritPrincipalOverruleOwner); \
using nsILoadInfo::GetLoadingSandboxed; \
nsresult GetLoadingSandboxed(bool *aLoadingSandboxed); \
using nsILoadInfo::GetAboutBlankInherits; \
nsresult GetAboutBlankInherits(bool *aAboutBlankInherits); \
using nsILoadInfo::GetAllowChrome; \
nsresult GetAllowChrome(bool *aAllowChrome); \
using nsILoadInfo::GetDisallowScript; \
nsresult GetDisallowScript(bool *aDisallowScript); \
using nsILoadInfo::GetDontFollowRedirects; \
nsresult GetDontFollowRedirects(bool *aDontFollowRedirects); \
using nsILoadInfo::GetLoadErrorPage; \
nsresult GetLoadErrorPage(bool *aLoadErrorPage); \
using nsILoadInfo::GetIsFormSubmission; \
nsresult GetIsFormSubmission(bool *aIsFormSubmission); \
nsresult SetIsFormSubmission(bool aIsFormSubmission); \
using nsILoadInfo::GetIsGETRequest; \
nsresult GetIsGETRequest(bool *aIsGETRequest); \
nsresult SetIsGETRequest(bool aIsGETRequest); \
nsresult GetExternalContentPolicyType(nsContentPolicyType *aExternalContentPolicyType); \
using nsILoadInfo::GetSendCSPViolationEvents; \
nsresult GetSendCSPViolationEvents(bool *aSendCSPViolationEvents); \
nsresult SetSendCSPViolationEvents(bool aSendCSPViolationEvents); \
nsContentPolicyType InternalContentPolicyType(void); \
nsresult GetInternalContentPolicyType(nsContentPolicyType *aInternalContentPolicyType); \
nsresult GetFetchDestination(nsACString& aFetchDestination); \
using nsILoadInfo::GetBlockAllMixedContent; \
nsresult GetBlockAllMixedContent(bool *aBlockAllMixedContent); \
using nsILoadInfo::GetUpgradeInsecureRequests; \
nsresult GetUpgradeInsecureRequests(bool *aUpgradeInsecureRequests); \
using nsILoadInfo::GetBrowserUpgradeInsecureRequests; \
nsresult GetBrowserUpgradeInsecureRequests(bool *aBrowserUpgradeInsecureRequests); \
using nsILoadInfo::GetBrowserDidUpgradeInsecureRequests; \
nsresult GetBrowserDidUpgradeInsecureRequests(bool *aBrowserDidUpgradeInsecureRequests); \
nsresult SetBrowserDidUpgradeInsecureRequests(bool aBrowserDidUpgradeInsecureRequests); \
using nsILoadInfo::GetBrowserWouldUpgradeInsecureRequests; \
nsresult GetBrowserWouldUpgradeInsecureRequests(bool *aBrowserWouldUpgradeInsecureRequests); \
using nsILoadInfo::GetForceAllowDataURI; \
nsresult GetForceAllowDataURI(bool *aForceAllowDataURI); \
nsresult SetForceAllowDataURI(bool aForceAllowDataURI); \
using nsILoadInfo::GetAllowInsecureRedirectToDataURI; \
nsresult GetAllowInsecureRedirectToDataURI(bool *aAllowInsecureRedirectToDataURI); \
nsresult SetAllowInsecureRedirectToDataURI(bool aAllowInsecureRedirectToDataURI); \
using nsILoadInfo::GetSkipContentPolicyCheckForWebRequest; \
nsresult GetSkipContentPolicyCheckForWebRequest(bool *aSkipContentPolicyCheckForWebRequest); \
nsresult SetSkipContentPolicyCheckForWebRequest(bool aSkipContentPolicyCheckForWebRequest); \
using nsILoadInfo::GetOriginalFrameSrcLoad; \
nsresult GetOriginalFrameSrcLoad(bool *aOriginalFrameSrcLoad); \
nsresult SetOriginalFrameSrcLoad(bool aOriginalFrameSrcLoad); \
using nsILoadInfo::GetForceInheritPrincipalDropped; \
nsresult GetForceInheritPrincipalDropped(bool *aForceInheritPrincipalDropped); \
using nsILoadInfo::GetInnerWindowID; \
nsresult GetInnerWindowID(uint64_t *aInnerWindowID); \
using nsILoadInfo::GetBrowsingContextID; \
nsresult GetBrowsingContextID(uint64_t *aBrowsingContextID); \
using nsILoadInfo::GetBrowsingContext; \
nsresult GetBrowsingContext(mozilla::dom::BrowsingContext **aBrowsingContext); \
using nsILoadInfo::GetWorkerAssociatedBrowsingContextID; \
nsresult GetWorkerAssociatedBrowsingContextID(uint64_t *aWorkerAssociatedBrowsingContextID); \
nsresult SetWorkerAssociatedBrowsingContextID(uint64_t aWorkerAssociatedBrowsingContextID); \
using nsILoadInfo::GetWorkerAssociatedBrowsingContext; \
nsresult GetWorkerAssociatedBrowsingContext(mozilla::dom::BrowsingContext **aWorkerAssociatedBrowsingContext); \
using nsILoadInfo::GetFrameBrowsingContextID; \
nsresult GetFrameBrowsingContextID(uint64_t *aFrameBrowsingContextID); \
using nsILoadInfo::GetFrameBrowsingContext; \
nsresult GetFrameBrowsingContext(mozilla::dom::BrowsingContext **aFrameBrowsingContext); \
using nsILoadInfo::GetTargetBrowsingContextID; \
nsresult GetTargetBrowsingContextID(uint64_t *aTargetBrowsingContextID); \
using nsILoadInfo::GetTargetBrowsingContext; \
nsresult GetTargetBrowsingContext(mozilla::dom::BrowsingContext **aTargetBrowsingContext); \
nsresult ResetPrincipalToInheritToNullPrincipal(void); \
nsresult GetScriptableOriginAttributes(JSContext* cx, JS::MutableHandle<JS::Value> aOriginAttributes); \
nsresult SetScriptableOriginAttributes(JSContext* cx, JS::Handle<JS::Value> aOriginAttributes); \
nsresult GetOriginAttributes(mozilla::OriginAttributes * _retval); \
nsresult SetOriginAttributes(const mozilla::OriginAttributes & aOriginAttrs); \
using nsILoadInfo::GetInitialSecurityCheckDone; \
nsresult GetInitialSecurityCheckDone(bool *aInitialSecurityCheckDone); \
nsresult SetInitialSecurityCheckDone(bool aInitialSecurityCheckDone); \
using nsILoadInfo::GetLoadTriggeredFromExternal; \
nsresult GetLoadTriggeredFromExternal(bool *aLoadTriggeredFromExternal); \
nsresult SetLoadTriggeredFromExternal(bool aLoadTriggeredFromExternal); \
using nsILoadInfo::GetServiceWorkerTaintingSynthesized; \
nsresult GetServiceWorkerTaintingSynthesized(bool *aServiceWorkerTaintingSynthesized); \
nsresult AppendRedirectHistoryEntry(nsIChannel *channelToDeriveFrom, bool isInternalRedirect); \
nsresult GetRedirectChainIncludingInternalRedirects(JSContext* cx, JS::MutableHandle<JS::Value> aRedirectChainIncludingInternalRedirects); \
const nsTArray<nsCOMPtr<nsIRedirectHistoryEntry>> & RedirectChainIncludingInternalRedirects(void); \
nsresult GetRedirectChain(JSContext* cx, JS::MutableHandle<JS::Value> aRedirectChain); \
const nsTArray<nsCOMPtr<nsIRedirectHistoryEntry>> & RedirectChain(void); \
const nsTArray<nsCOMPtr<nsIPrincipal>> & AncestorPrincipals(void); \
const nsTArray<uint64_t> & AncestorBrowsingContextIDs(void); \
void SetCorsPreflightInfo(const nsTArray<nsCString> & unsafeHeaders, bool forcePreflight); \
const nsTArray<nsCString> & CorsUnsafeHeaders(void); \
using nsILoadInfo::GetForcePreflight; \
nsresult GetForcePreflight(bool *aForcePreflight); \
using nsILoadInfo::GetIsPreflight; \
nsresult GetIsPreflight(bool *aIsPreflight); \
nsresult GetTainting(uint32_t *aTainting); \
nsresult MaybeIncreaseTainting(uint32_t aTainting); \
using nsILoadInfo::GetIsTopLevelLoad; \
nsresult GetIsTopLevelLoad(bool *aIsTopLevelLoad); \
nsresult GetResultPrincipalURI(nsIURI **aResultPrincipalURI); \
nsresult SetResultPrincipalURI(nsIURI *aResultPrincipalURI); \
nsresult GetChannelCreationOriginalURI(nsIURI **aChannelCreationOriginalURI); \
nsresult SetChannelCreationOriginalURI(nsIURI *aChannelCreationOriginalURI); \
const nsID & GetSandboxedNullPrincipalID(void); \
void ResetSandboxedNullPrincipalID(void); \
nsIPrincipal * GetTopLevelPrincipal(); \
void SetClientInfo(const mozilla::dom::ClientInfo & aClientInfo); \
const mozilla::Maybe<mozilla::dom::ClientInfo> & GetClientInfo(void); \
void GiveReservedClientSource(mozilla::UniquePtr<mozilla::dom::ClientSource>&& aClientSource); \
mozilla::UniquePtr<mozilla::dom::ClientSource> TakeReservedClientSource(void); \
void SetReservedClientInfo(const mozilla::dom::ClientInfo & aClientInfo); \
void OverrideReservedClientInfoInParent(const mozilla::dom::ClientInfo & aClientInfo); \
const mozilla::Maybe<mozilla::dom::ClientInfo> & GetReservedClientInfo(void); \
void SetInitialClientInfo(const mozilla::dom::ClientInfo & aClientInfo); \
const mozilla::Maybe<mozilla::dom::ClientInfo> & GetInitialClientInfo(void); \
void SetController(const mozilla::dom::ServiceWorkerDescriptor & aServiceWorker); \
void ClearController(void); \
const mozilla::Maybe<mozilla::dom::ServiceWorkerDescriptor> & GetController(void); \
void SetPerformanceStorage(mozilla::dom::PerformanceStorage * aPerformanceStorage); \
mozilla::dom::PerformanceStorage * GetPerformanceStorage(void); \
already_AddRefed<nsIContentSecurityPolicy> GetCsp(void); \
already_AddRefed<nsIContentSecurityPolicy> GetPreloadCsp(void); \
already_AddRefed<nsIContentSecurityPolicy> GetCspToInherit(void); \
mozilla::Maybe<mozilla::dom::FeaturePolicyInfo> GetContainerFeaturePolicyInfo(void); \
void SetContainerFeaturePolicyInfo(const mozilla::dom::FeaturePolicyInfo & aContainerFeaturePolicy); \
void SynthesizeServiceWorkerTainting(mozilla::LoadTainting aTainting); \
using nsILoadInfo::GetDocumentHasUserInteracted; \
nsresult GetDocumentHasUserInteracted(bool *aDocumentHasUserInteracted); \
nsresult SetDocumentHasUserInteracted(bool aDocumentHasUserInteracted); \
using nsILoadInfo::GetAllowListFutureDocumentsCreatedFromThisRedirectChain; \
nsresult GetAllowListFutureDocumentsCreatedFromThisRedirectChain(bool *aAllowListFutureDocumentsCreatedFromThisRedirectChain); \
nsresult SetAllowListFutureDocumentsCreatedFromThisRedirectChain(bool aAllowListFutureDocumentsCreatedFromThisRedirectChain); \
using nsILoadInfo::GetNeedForCheckingAntiTrackingHeuristic; \
nsresult GetNeedForCheckingAntiTrackingHeuristic(bool *aNeedForCheckingAntiTrackingHeuristic); \
nsresult SetNeedForCheckingAntiTrackingHeuristic(bool aNeedForCheckingAntiTrackingHeuristic); \
nsresult GetCspNonce(nsAString& aCspNonce); \
nsresult SetCspNonce(const nsAString& aCspNonce); \
nsresult GetIntegrityMetadata(nsAString& aIntegrityMetadata); \
nsresult SetIntegrityMetadata(const nsAString& aIntegrityMetadata); \
using nsILoadInfo::GetRequestBlockingReason; \
nsresult GetRequestBlockingReason(uint32_t *aRequestBlockingReason); \
nsresult SetRequestBlockingReason(uint32_t aRequestBlockingReason); \
nsresult GetCspEventListener(nsICSPEventListener **aCspEventListener); \
nsresult SetCspEventListener(nsICSPEventListener *aCspEventListener); \
using nsILoadInfo::GetIsFromProcessingFrameAttributes; \
nsresult GetIsFromProcessingFrameAttributes(bool *aIsFromProcessingFrameAttributes); \
using nsILoadInfo::GetLoadingEmbedderPolicy; \
nsresult GetLoadingEmbedderPolicy(nsILoadInfo::CrossOriginEmbedderPolicy *aLoadingEmbedderPolicy); \
nsresult SetLoadingEmbedderPolicy(nsILoadInfo::CrossOriginEmbedderPolicy aLoadingEmbedderPolicy); \
using nsILoadInfo::GetIsOriginTrialCoepCredentiallessEnabledForTopLevel; \
nsresult GetIsOriginTrialCoepCredentiallessEnabledForTopLevel(bool *aIsOriginTrialCoepCredentiallessEnabledForTopLevel); \
nsresult SetIsOriginTrialCoepCredentiallessEnabledForTopLevel(bool aIsOriginTrialCoepCredentiallessEnabledForTopLevel); \
using nsILoadInfo::GetIsMediaRequest; \
nsresult GetIsMediaRequest(bool *aIsMediaRequest); \
nsresult SetIsMediaRequest(bool aIsMediaRequest); \
using nsILoadInfo::GetIsMediaInitialRequest; \
nsresult GetIsMediaInitialRequest(bool *aIsMediaInitialRequest); \
nsresult SetIsMediaInitialRequest(bool aIsMediaInitialRequest); \
using nsILoadInfo::GetIsFromObjectOrEmbed; \
nsresult GetIsFromObjectOrEmbed(bool *aIsFromObjectOrEmbed); \
nsresult SetIsFromObjectOrEmbed(bool aIsFromObjectOrEmbed); \
using nsILoadInfo::GetShouldSkipCheckForBrokenURLOrZeroSized; \
nsresult GetShouldSkipCheckForBrokenURLOrZeroSized(bool *aShouldSkipCheckForBrokenURLOrZeroSized); \
nsresult GetUnstrippedURI(nsIURI **aUnstrippedURI); \
nsresult SetUnstrippedURI(nsIURI *aUnstrippedURI); \
nsIInterceptionInfo * InterceptionInfo(void); \
void SetInterceptionInfo(nsIInterceptionInfo *info); \
using nsILoadInfo::GetHasInjectedCookieForCookieBannerHandling; \
nsresult GetHasInjectedCookieForCookieBannerHandling(bool *aHasInjectedCookieForCookieBannerHandling); \
nsresult SetHasInjectedCookieForCookieBannerHandling(bool aHasInjectedCookieForCookieBannerHandling); \
using nsILoadInfo::GetSchemelessInput; \
nsresult GetSchemelessInput(nsILoadInfo::SchemelessInputType *aSchemelessInput); \
nsresult SetSchemelessInput(nsILoadInfo::SchemelessInputType aSchemelessInput); \
using nsILoadInfo::GetHttpsUpgradeTelemetry; \
nsresult GetHttpsUpgradeTelemetry(nsILoadInfo::HTTPSUpgradeTelemetryType *aHttpsUpgradeTelemetry); \
nsresult SetHttpsUpgradeTelemetry(nsILoadInfo::HTTPSUpgradeTelemetryType aHttpsUpgradeTelemetry); \
using nsILoadInfo::GetIsNewWindowTarget; \
nsresult GetIsNewWindowTarget(bool *aIsNewWindowTarget); \
nsresult SetIsNewWindowTarget(bool aIsNewWindowTarget); \
using nsILoadInfo::GetSkipHTTPSUpgrade; \
nsresult GetSkipHTTPSUpgrade(bool *aSkipHTTPSUpgrade); \
nsresult SetSkipHTTPSUpgrade(bool aSkipHTTPSUpgrade);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILOADINFO(_to) \
NS_IMETHOD GetLoadingPrincipal(nsIPrincipal **aLoadingPrincipal) override { return _to GetLoadingPrincipal(aLoadingPrincipal); } \
virtual nsIPrincipal * VirtualGetLoadingPrincipal(void) override { return _to VirtualGetLoadingPrincipal(); } \
NS_IMETHOD GetTriggeringPrincipal(nsIPrincipal **aTriggeringPrincipal) override { return _to GetTriggeringPrincipal(aTriggeringPrincipal); } \
virtual nsIPrincipal * TriggeringPrincipal(void) override { return _to TriggeringPrincipal(); } \
NS_IMETHOD GetTriggeringRemoteType(nsACString& aTriggeringRemoteType) override { return _to GetTriggeringRemoteType(aTriggeringRemoteType); } \
NS_IMETHOD SetTriggeringRemoteType(const nsACString& aTriggeringRemoteType) override { return _to SetTriggeringRemoteType(aTriggeringRemoteType); } \
NS_IMETHOD GetPrincipalToInherit(nsIPrincipal **aPrincipalToInherit) override { return _to GetPrincipalToInherit(aPrincipalToInherit); } \
NS_IMETHOD SetPrincipalToInherit(nsIPrincipal *aPrincipalToInherit) override { return _to SetPrincipalToInherit(aPrincipalToInherit); } \
virtual nsIPrincipal * PrincipalToInherit(void) override { return _to PrincipalToInherit(); } \
virtual nsIPrincipal * FindPrincipalToInherit(nsIChannel *aChannel) override { return _to FindPrincipalToInherit(aChannel); } \
NS_IMETHOD GetLoadingDocument(mozilla::dom::Document **aLoadingDocument) override { return _to GetLoadingDocument(aLoadingDocument); } \
virtual nsINode * LoadingNode(void) override { return _to LoadingNode(); } \
virtual already_AddRefed<nsISupports> ContextForTopLevelLoad(void) override { return _to ContextForTopLevelLoad(); } \
NS_IMETHOD GetLoadingContextXPCOM(nsISupports **aLoadingContext) override { return _to GetLoadingContextXPCOM(aLoadingContext); } \
virtual already_AddRefed<nsISupports> GetLoadingContext(void) override { return _to GetLoadingContext(); } \
NS_IMETHOD GetSecurityFlags(nsSecurityFlags *aSecurityFlags) override { return _to GetSecurityFlags(aSecurityFlags); } \
using nsILoadInfo::GetSandboxFlags; \
NS_IMETHOD GetSandboxFlags(uint32_t *aSandboxFlags) override { return _to GetSandboxFlags(aSandboxFlags); } \
using nsILoadInfo::GetTriggeringSandboxFlags; \
NS_IMETHOD GetTriggeringSandboxFlags(uint32_t *aTriggeringSandboxFlags) override { return _to GetTriggeringSandboxFlags(aTriggeringSandboxFlags); } \
NS_IMETHOD SetTriggeringSandboxFlags(uint32_t aTriggeringSandboxFlags) override { return _to SetTriggeringSandboxFlags(aTriggeringSandboxFlags); } \
using nsILoadInfo::GetTriggeringWindowId; \
NS_IMETHOD GetTriggeringWindowId(uint64_t *aTriggeringWindowId) override { return _to GetTriggeringWindowId(aTriggeringWindowId); } \
NS_IMETHOD SetTriggeringWindowId(uint64_t aTriggeringWindowId) override { return _to SetTriggeringWindowId(aTriggeringWindowId); } \
using nsILoadInfo::GetTriggeringStorageAccess; \
NS_IMETHOD GetTriggeringStorageAccess(bool *aTriggeringStorageAccess) override { return _to GetTriggeringStorageAccess(aTriggeringStorageAccess); } \
NS_IMETHOD SetTriggeringStorageAccess(bool aTriggeringStorageAccess) override { return _to SetTriggeringStorageAccess(aTriggeringStorageAccess); } \
using nsILoadInfo::GetSecurityMode; \
NS_IMETHOD GetSecurityMode(uint32_t *aSecurityMode) override { return _to GetSecurityMode(aSecurityMode); } \
using nsILoadInfo::GetSkipContentSniffing; \
NS_IMETHOD GetSkipContentSniffing(bool *aSkipContentSniffing) override { return _to GetSkipContentSniffing(aSkipContentSniffing); } \
NS_IMETHOD SetSkipContentSniffing(bool aSkipContentSniffing) override { return _to SetSkipContentSniffing(aSkipContentSniffing); } \
using nsILoadInfo::GetHttpsOnlyStatus; \
NS_IMETHOD GetHttpsOnlyStatus(uint32_t *aHttpsOnlyStatus) override { return _to GetHttpsOnlyStatus(aHttpsOnlyStatus); } \
NS_IMETHOD SetHttpsOnlyStatus(uint32_t aHttpsOnlyStatus) override { return _to SetHttpsOnlyStatus(aHttpsOnlyStatus); } \
using nsILoadInfo::GetHstsStatus; \
NS_IMETHOD GetHstsStatus(bool *aHstsStatus) override { return _to GetHstsStatus(aHstsStatus); } \
NS_IMETHOD SetHstsStatus(bool aHstsStatus) override { return _to SetHstsStatus(aHstsStatus); } \
using nsILoadInfo::GetHasValidUserGestureActivation; \
NS_IMETHOD GetHasValidUserGestureActivation(bool *aHasValidUserGestureActivation) override { return _to GetHasValidUserGestureActivation(aHasValidUserGestureActivation); } \
NS_IMETHOD SetHasValidUserGestureActivation(bool aHasValidUserGestureActivation) override { return _to SetHasValidUserGestureActivation(aHasValidUserGestureActivation); } \
using nsILoadInfo::GetTextDirectiveUserActivation; \
NS_IMETHOD GetTextDirectiveUserActivation(bool *aTextDirectiveUserActivation) override { return _to GetTextDirectiveUserActivation(aTextDirectiveUserActivation); } \
NS_IMETHOD SetTextDirectiveUserActivation(bool aTextDirectiveUserActivation) override { return _to SetTextDirectiveUserActivation(aTextDirectiveUserActivation); } \
using nsILoadInfo::GetIsSameDocumentNavigation; \
NS_IMETHOD GetIsSameDocumentNavigation(bool *aIsSameDocumentNavigation) override { return _to GetIsSameDocumentNavigation(aIsSameDocumentNavigation); } \
NS_IMETHOD SetIsSameDocumentNavigation(bool aIsSameDocumentNavigation) override { return _to SetIsSameDocumentNavigation(aIsSameDocumentNavigation); } \
using nsILoadInfo::GetAllowDeprecatedSystemRequests; \
NS_IMETHOD GetAllowDeprecatedSystemRequests(bool *aAllowDeprecatedSystemRequests) override { return _to GetAllowDeprecatedSystemRequests(aAllowDeprecatedSystemRequests); } \
NS_IMETHOD SetAllowDeprecatedSystemRequests(bool aAllowDeprecatedSystemRequests) override { return _to SetAllowDeprecatedSystemRequests(aAllowDeprecatedSystemRequests); } \
using nsILoadInfo::GetParserCreatedScript; \
NS_IMETHOD GetParserCreatedScript(bool *aParserCreatedScript) override { return _to GetParserCreatedScript(aParserCreatedScript); } \
NS_IMETHOD SetParserCreatedScript(bool aParserCreatedScript) override { return _to SetParserCreatedScript(aParserCreatedScript); } \
using nsILoadInfo::GetIsUserTriggeredSave; \
NS_IMETHOD GetIsUserTriggeredSave(bool *aIsUserTriggeredSave) override { return _to GetIsUserTriggeredSave(aIsUserTriggeredSave); } \
NS_IMETHOD SetIsUserTriggeredSave(bool aIsUserTriggeredSave) override { return _to SetIsUserTriggeredSave(aIsUserTriggeredSave); } \
using nsILoadInfo::GetIsInDevToolsContext; \
NS_IMETHOD GetIsInDevToolsContext(bool *aIsInDevToolsContext) override { return _to GetIsInDevToolsContext(aIsInDevToolsContext); } \
NS_IMETHOD SetIsInDevToolsContext(bool aIsInDevToolsContext) override { return _to SetIsInDevToolsContext(aIsInDevToolsContext); } \
using nsILoadInfo::GetIsInThirdPartyContext; \
NS_IMETHOD GetIsInThirdPartyContext(bool *aIsInThirdPartyContext) override { return _to GetIsInThirdPartyContext(aIsInThirdPartyContext); } \
NS_IMETHOD SetIsInThirdPartyContext(bool aIsInThirdPartyContext) override { return _to SetIsInThirdPartyContext(aIsInThirdPartyContext); } \
using nsILoadInfo::GetIsThirdPartyContextToTopWindow; \
NS_IMETHOD GetIsThirdPartyContextToTopWindow(bool *aIsThirdPartyContextToTopWindow) override { return _to GetIsThirdPartyContextToTopWindow(aIsThirdPartyContextToTopWindow); } \
NS_IMETHOD SetIsThirdPartyContextToTopWindow(bool aIsThirdPartyContextToTopWindow) override { return _to SetIsThirdPartyContextToTopWindow(aIsThirdPartyContextToTopWindow); } \
using nsILoadInfo::GetCookiePolicy; \
NS_IMETHOD GetCookiePolicy(uint32_t *aCookiePolicy) override { return _to GetCookiePolicy(aCookiePolicy); } \
NS_IMETHOD GetCookieJarSettings(nsICookieJarSettings **aCookieJarSettings) override { return _to GetCookieJarSettings(aCookieJarSettings); } \
NS_IMETHOD SetCookieJarSettings(nsICookieJarSettings *aCookieJarSettings) override { return _to SetCookieJarSettings(aCookieJarSettings); } \
using nsILoadInfo::GetStoragePermission; \
NS_IMETHOD GetStoragePermission(nsILoadInfo::StoragePermissionState *aStoragePermission) override { return _to GetStoragePermission(aStoragePermission); } \
NS_IMETHOD SetStoragePermission(nsILoadInfo::StoragePermissionState aStoragePermission) override { return _to SetStoragePermission(aStoragePermission); } \
virtual const mozilla::Maybe<mozilla::RFPTarget> & GetOverriddenFingerprintingSettings(void) override { return _to GetOverriddenFingerprintingSettings(); } \
virtual void SetOverriddenFingerprintingSettings(mozilla::RFPTarget aTargets) override { return _to SetOverriddenFingerprintingSettings(aTargets); } \
using nsILoadInfo::GetIsMetaRefresh; \
NS_IMETHOD GetIsMetaRefresh(bool *aIsMetaRefresh) override { return _to GetIsMetaRefresh(aIsMetaRefresh); } \
NS_IMETHOD SetIsMetaRefresh(bool aIsMetaRefresh) override { return _to SetIsMetaRefresh(aIsMetaRefresh); } \
using nsILoadInfo::GetForceInheritPrincipal; \
NS_IMETHOD GetForceInheritPrincipal(bool *aForceInheritPrincipal) override { return _to GetForceInheritPrincipal(aForceInheritPrincipal); } \
using nsILoadInfo::GetForceInheritPrincipalOverruleOwner; \
NS_IMETHOD GetForceInheritPrincipalOverruleOwner(bool *aForceInheritPrincipalOverruleOwner) override { return _to GetForceInheritPrincipalOverruleOwner(aForceInheritPrincipalOverruleOwner); } \
using nsILoadInfo::GetLoadingSandboxed; \
NS_IMETHOD GetLoadingSandboxed(bool *aLoadingSandboxed) override { return _to GetLoadingSandboxed(aLoadingSandboxed); } \
using nsILoadInfo::GetAboutBlankInherits; \
NS_IMETHOD GetAboutBlankInherits(bool *aAboutBlankInherits) override { return _to GetAboutBlankInherits(aAboutBlankInherits); } \
using nsILoadInfo::GetAllowChrome; \
NS_IMETHOD GetAllowChrome(bool *aAllowChrome) override { return _to GetAllowChrome(aAllowChrome); } \
using nsILoadInfo::GetDisallowScript; \
NS_IMETHOD GetDisallowScript(bool *aDisallowScript) override { return _to GetDisallowScript(aDisallowScript); } \
using nsILoadInfo::GetDontFollowRedirects; \
NS_IMETHOD GetDontFollowRedirects(bool *aDontFollowRedirects) override { return _to GetDontFollowRedirects(aDontFollowRedirects); } \
using nsILoadInfo::GetLoadErrorPage; \
NS_IMETHOD GetLoadErrorPage(bool *aLoadErrorPage) override { return _to GetLoadErrorPage(aLoadErrorPage); } \
using nsILoadInfo::GetIsFormSubmission; \
NS_IMETHOD GetIsFormSubmission(bool *aIsFormSubmission) override { return _to GetIsFormSubmission(aIsFormSubmission); } \
NS_IMETHOD SetIsFormSubmission(bool aIsFormSubmission) override { return _to SetIsFormSubmission(aIsFormSubmission); } \
using nsILoadInfo::GetIsGETRequest; \
NS_IMETHOD GetIsGETRequest(bool *aIsGETRequest) override { return _to GetIsGETRequest(aIsGETRequest); } \
NS_IMETHOD SetIsGETRequest(bool aIsGETRequest) override { return _to SetIsGETRequest(aIsGETRequest); } \
NS_IMETHOD GetExternalContentPolicyType(nsContentPolicyType *aExternalContentPolicyType) override { return _to GetExternalContentPolicyType(aExternalContentPolicyType); } \
using nsILoadInfo::GetSendCSPViolationEvents; \
NS_IMETHOD GetSendCSPViolationEvents(bool *aSendCSPViolationEvents) override { return _to GetSendCSPViolationEvents(aSendCSPViolationEvents); } \
NS_IMETHOD SetSendCSPViolationEvents(bool aSendCSPViolationEvents) override { return _to SetSendCSPViolationEvents(aSendCSPViolationEvents); } \
virtual nsContentPolicyType InternalContentPolicyType(void) override { return _to InternalContentPolicyType(); } \
NS_IMETHOD GetInternalContentPolicyType(nsContentPolicyType *aInternalContentPolicyType) override { return _to GetInternalContentPolicyType(aInternalContentPolicyType); } \
NS_IMETHOD GetFetchDestination(nsACString& aFetchDestination) override { return _to GetFetchDestination(aFetchDestination); } \
using nsILoadInfo::GetBlockAllMixedContent; \
NS_IMETHOD GetBlockAllMixedContent(bool *aBlockAllMixedContent) override { return _to GetBlockAllMixedContent(aBlockAllMixedContent); } \
using nsILoadInfo::GetUpgradeInsecureRequests; \
NS_IMETHOD GetUpgradeInsecureRequests(bool *aUpgradeInsecureRequests) override { return _to GetUpgradeInsecureRequests(aUpgradeInsecureRequests); } \
using nsILoadInfo::GetBrowserUpgradeInsecureRequests; \
NS_IMETHOD GetBrowserUpgradeInsecureRequests(bool *aBrowserUpgradeInsecureRequests) override { return _to GetBrowserUpgradeInsecureRequests(aBrowserUpgradeInsecureRequests); } \
using nsILoadInfo::GetBrowserDidUpgradeInsecureRequests; \
NS_IMETHOD GetBrowserDidUpgradeInsecureRequests(bool *aBrowserDidUpgradeInsecureRequests) override { return _to GetBrowserDidUpgradeInsecureRequests(aBrowserDidUpgradeInsecureRequests); } \
NS_IMETHOD SetBrowserDidUpgradeInsecureRequests(bool aBrowserDidUpgradeInsecureRequests) override { return _to SetBrowserDidUpgradeInsecureRequests(aBrowserDidUpgradeInsecureRequests); } \
using nsILoadInfo::GetBrowserWouldUpgradeInsecureRequests; \
NS_IMETHOD GetBrowserWouldUpgradeInsecureRequests(bool *aBrowserWouldUpgradeInsecureRequests) override { return _to GetBrowserWouldUpgradeInsecureRequests(aBrowserWouldUpgradeInsecureRequests); } \
using nsILoadInfo::GetForceAllowDataURI; \
NS_IMETHOD GetForceAllowDataURI(bool *aForceAllowDataURI) override { return _to GetForceAllowDataURI(aForceAllowDataURI); } \
NS_IMETHOD SetForceAllowDataURI(bool aForceAllowDataURI) override { return _to SetForceAllowDataURI(aForceAllowDataURI); } \
using nsILoadInfo::GetAllowInsecureRedirectToDataURI; \
NS_IMETHOD GetAllowInsecureRedirectToDataURI(bool *aAllowInsecureRedirectToDataURI) override { return _to GetAllowInsecureRedirectToDataURI(aAllowInsecureRedirectToDataURI); } \
NS_IMETHOD SetAllowInsecureRedirectToDataURI(bool aAllowInsecureRedirectToDataURI) override { return _to SetAllowInsecureRedirectToDataURI(aAllowInsecureRedirectToDataURI); } \
using nsILoadInfo::GetSkipContentPolicyCheckForWebRequest; \
NS_IMETHOD GetSkipContentPolicyCheckForWebRequest(bool *aSkipContentPolicyCheckForWebRequest) override { return _to GetSkipContentPolicyCheckForWebRequest(aSkipContentPolicyCheckForWebRequest); } \
NS_IMETHOD SetSkipContentPolicyCheckForWebRequest(bool aSkipContentPolicyCheckForWebRequest) override { return _to SetSkipContentPolicyCheckForWebRequest(aSkipContentPolicyCheckForWebRequest); } \
using nsILoadInfo::GetOriginalFrameSrcLoad; \
NS_IMETHOD GetOriginalFrameSrcLoad(bool *aOriginalFrameSrcLoad) override { return _to GetOriginalFrameSrcLoad(aOriginalFrameSrcLoad); } \
NS_IMETHOD SetOriginalFrameSrcLoad(bool aOriginalFrameSrcLoad) override { return _to SetOriginalFrameSrcLoad(aOriginalFrameSrcLoad); } \
using nsILoadInfo::GetForceInheritPrincipalDropped; \
NS_IMETHOD GetForceInheritPrincipalDropped(bool *aForceInheritPrincipalDropped) override { return _to GetForceInheritPrincipalDropped(aForceInheritPrincipalDropped); } \
using nsILoadInfo::GetInnerWindowID; \
NS_IMETHOD GetInnerWindowID(uint64_t *aInnerWindowID) override { return _to GetInnerWindowID(aInnerWindowID); } \
using nsILoadInfo::GetBrowsingContextID; \
NS_IMETHOD GetBrowsingContextID(uint64_t *aBrowsingContextID) override { return _to GetBrowsingContextID(aBrowsingContextID); } \
using nsILoadInfo::GetBrowsingContext; \
NS_IMETHOD GetBrowsingContext(mozilla::dom::BrowsingContext **aBrowsingContext) override { return _to GetBrowsingContext(aBrowsingContext); } \
using nsILoadInfo::GetWorkerAssociatedBrowsingContextID; \
NS_IMETHOD GetWorkerAssociatedBrowsingContextID(uint64_t *aWorkerAssociatedBrowsingContextID) override { return _to GetWorkerAssociatedBrowsingContextID(aWorkerAssociatedBrowsingContextID); } \
NS_IMETHOD SetWorkerAssociatedBrowsingContextID(uint64_t aWorkerAssociatedBrowsingContextID) override { return _to SetWorkerAssociatedBrowsingContextID(aWorkerAssociatedBrowsingContextID); } \
using nsILoadInfo::GetWorkerAssociatedBrowsingContext; \
NS_IMETHOD GetWorkerAssociatedBrowsingContext(mozilla::dom::BrowsingContext **aWorkerAssociatedBrowsingContext) override { return _to GetWorkerAssociatedBrowsingContext(aWorkerAssociatedBrowsingContext); } \
using nsILoadInfo::GetFrameBrowsingContextID; \
NS_IMETHOD GetFrameBrowsingContextID(uint64_t *aFrameBrowsingContextID) override { return _to GetFrameBrowsingContextID(aFrameBrowsingContextID); } \
using nsILoadInfo::GetFrameBrowsingContext; \
NS_IMETHOD GetFrameBrowsingContext(mozilla::dom::BrowsingContext **aFrameBrowsingContext) override { return _to GetFrameBrowsingContext(aFrameBrowsingContext); } \
using nsILoadInfo::GetTargetBrowsingContextID; \
NS_IMETHOD GetTargetBrowsingContextID(uint64_t *aTargetBrowsingContextID) override { return _to GetTargetBrowsingContextID(aTargetBrowsingContextID); } \
using nsILoadInfo::GetTargetBrowsingContext; \
NS_IMETHOD GetTargetBrowsingContext(mozilla::dom::BrowsingContext **aTargetBrowsingContext) override { return _to GetTargetBrowsingContext(aTargetBrowsingContext); } \
NS_IMETHOD ResetPrincipalToInheritToNullPrincipal(void) override { return _to ResetPrincipalToInheritToNullPrincipal(); } \
NS_IMETHOD GetScriptableOriginAttributes(JSContext* cx, JS::MutableHandle<JS::Value> aOriginAttributes) override { return _to GetScriptableOriginAttributes(cx, aOriginAttributes); } \
NS_IMETHOD SetScriptableOriginAttributes(JSContext* cx, JS::Handle<JS::Value> aOriginAttributes) override { return _to SetScriptableOriginAttributes(cx, aOriginAttributes); } \
virtual nsresult GetOriginAttributes(mozilla::OriginAttributes * _retval) override { return _to GetOriginAttributes(_retval); } \
virtual nsresult SetOriginAttributes(const mozilla::OriginAttributes & aOriginAttrs) override { return _to SetOriginAttributes(aOriginAttrs); } \
using nsILoadInfo::GetInitialSecurityCheckDone; \
NS_IMETHOD GetInitialSecurityCheckDone(bool *aInitialSecurityCheckDone) override { return _to GetInitialSecurityCheckDone(aInitialSecurityCheckDone); } \
NS_IMETHOD SetInitialSecurityCheckDone(bool aInitialSecurityCheckDone) override { return _to SetInitialSecurityCheckDone(aInitialSecurityCheckDone); } \
using nsILoadInfo::GetLoadTriggeredFromExternal; \
NS_IMETHOD GetLoadTriggeredFromExternal(bool *aLoadTriggeredFromExternal) override { return _to GetLoadTriggeredFromExternal(aLoadTriggeredFromExternal); } \
NS_IMETHOD SetLoadTriggeredFromExternal(bool aLoadTriggeredFromExternal) override { return _to SetLoadTriggeredFromExternal(aLoadTriggeredFromExternal); } \
using nsILoadInfo::GetServiceWorkerTaintingSynthesized; \
NS_IMETHOD GetServiceWorkerTaintingSynthesized(bool *aServiceWorkerTaintingSynthesized) override { return _to GetServiceWorkerTaintingSynthesized(aServiceWorkerTaintingSynthesized); } \
NS_IMETHOD AppendRedirectHistoryEntry(nsIChannel *channelToDeriveFrom, bool isInternalRedirect) override { return _to AppendRedirectHistoryEntry(channelToDeriveFrom, isInternalRedirect); } \
NS_IMETHOD GetRedirectChainIncludingInternalRedirects(JSContext* cx, JS::MutableHandle<JS::Value> aRedirectChainIncludingInternalRedirects) override { return _to GetRedirectChainIncludingInternalRedirects(cx, aRedirectChainIncludingInternalRedirects); } \
virtual const nsTArray<nsCOMPtr<nsIRedirectHistoryEntry>> & RedirectChainIncludingInternalRedirects(void) override { return _to RedirectChainIncludingInternalRedirects(); } \
NS_IMETHOD GetRedirectChain(JSContext* cx, JS::MutableHandle<JS::Value> aRedirectChain) override { return _to GetRedirectChain(cx, aRedirectChain); } \
virtual const nsTArray<nsCOMPtr<nsIRedirectHistoryEntry>> & RedirectChain(void) override { return _to RedirectChain(); } \
virtual const nsTArray<nsCOMPtr<nsIPrincipal>> & AncestorPrincipals(void) override { return _to AncestorPrincipals(); } \
virtual const nsTArray<uint64_t> & AncestorBrowsingContextIDs(void) override { return _to AncestorBrowsingContextIDs(); } \
virtual void SetCorsPreflightInfo(const nsTArray<nsCString> & unsafeHeaders, bool forcePreflight) override { return _to SetCorsPreflightInfo(unsafeHeaders, forcePreflight); } \
virtual const nsTArray<nsCString> & CorsUnsafeHeaders(void) override { return _to CorsUnsafeHeaders(); } \
using nsILoadInfo::GetForcePreflight; \
NS_IMETHOD GetForcePreflight(bool *aForcePreflight) override { return _to GetForcePreflight(aForcePreflight); } \
using nsILoadInfo::GetIsPreflight; \
NS_IMETHOD GetIsPreflight(bool *aIsPreflight) override { return _to GetIsPreflight(aIsPreflight); } \
NS_IMETHOD GetTainting(uint32_t *aTainting) override { return _to GetTainting(aTainting); } \
NS_IMETHOD MaybeIncreaseTainting(uint32_t aTainting) override { return _to MaybeIncreaseTainting(aTainting); } \
using nsILoadInfo::GetIsTopLevelLoad; \
NS_IMETHOD GetIsTopLevelLoad(bool *aIsTopLevelLoad) override { return _to GetIsTopLevelLoad(aIsTopLevelLoad); } \
NS_IMETHOD GetResultPrincipalURI(nsIURI **aResultPrincipalURI) override { return _to GetResultPrincipalURI(aResultPrincipalURI); } \
NS_IMETHOD SetResultPrincipalURI(nsIURI *aResultPrincipalURI) override { return _to SetResultPrincipalURI(aResultPrincipalURI); } \
NS_IMETHOD GetChannelCreationOriginalURI(nsIURI **aChannelCreationOriginalURI) override { return _to GetChannelCreationOriginalURI(aChannelCreationOriginalURI); } \
NS_IMETHOD SetChannelCreationOriginalURI(nsIURI *aChannelCreationOriginalURI) override { return _to SetChannelCreationOriginalURI(aChannelCreationOriginalURI); } \
virtual const nsID & GetSandboxedNullPrincipalID(void) override { return _to GetSandboxedNullPrincipalID(); } \
virtual void ResetSandboxedNullPrincipalID(void) override { return _to ResetSandboxedNullPrincipalID(); } \
virtual nsIPrincipal * GetTopLevelPrincipal() override { return _to GetTopLevelPrincipal(); } \
virtual void SetClientInfo(const mozilla::dom::ClientInfo & aClientInfo) override { return _to SetClientInfo(aClientInfo); } \
virtual const mozilla::Maybe<mozilla::dom::ClientInfo> & GetClientInfo(void) override { return _to GetClientInfo(); } \
virtual void GiveReservedClientSource(mozilla::UniquePtr<mozilla::dom::ClientSource>&& aClientSource) override { return _to GiveReservedClientSource(aClientSource); } \
virtual mozilla::UniquePtr<mozilla::dom::ClientSource> TakeReservedClientSource(void) override { return _to TakeReservedClientSource(); } \
virtual void SetReservedClientInfo(const mozilla::dom::ClientInfo & aClientInfo) override { return _to SetReservedClientInfo(aClientInfo); } \
virtual void OverrideReservedClientInfoInParent(const mozilla::dom::ClientInfo & aClientInfo) override { return _to OverrideReservedClientInfoInParent(aClientInfo); } \
virtual const mozilla::Maybe<mozilla::dom::ClientInfo> & GetReservedClientInfo(void) override { return _to GetReservedClientInfo(); } \
virtual void SetInitialClientInfo(const mozilla::dom::ClientInfo & aClientInfo) override { return _to SetInitialClientInfo(aClientInfo); } \
virtual const mozilla::Maybe<mozilla::dom::ClientInfo> & GetInitialClientInfo(void) override { return _to GetInitialClientInfo(); } \
virtual void SetController(const mozilla::dom::ServiceWorkerDescriptor & aServiceWorker) override { return _to SetController(aServiceWorker); } \
virtual void ClearController(void) override { return _to ClearController(); } \
virtual const mozilla::Maybe<mozilla::dom::ServiceWorkerDescriptor> & GetController(void) override { return _to GetController(); } \
virtual void SetPerformanceStorage(mozilla::dom::PerformanceStorage * aPerformanceStorage) override { return _to SetPerformanceStorage(aPerformanceStorage); } \
virtual mozilla::dom::PerformanceStorage * GetPerformanceStorage(void) override { return _to GetPerformanceStorage(); } \
virtual already_AddRefed<nsIContentSecurityPolicy> GetCsp(void) override { return _to GetCsp(); } \
virtual already_AddRefed<nsIContentSecurityPolicy> GetPreloadCsp(void) override { return _to GetPreloadCsp(); } \
virtual already_AddRefed<nsIContentSecurityPolicy> GetCspToInherit(void) override { return _to GetCspToInherit(); } \
virtual mozilla::Maybe<mozilla::dom::FeaturePolicyInfo> GetContainerFeaturePolicyInfo(void) override { return _to GetContainerFeaturePolicyInfo(); } \
virtual void SetContainerFeaturePolicyInfo(const mozilla::dom::FeaturePolicyInfo & aContainerFeaturePolicy) override { return _to SetContainerFeaturePolicyInfo(aContainerFeaturePolicy); } \
virtual void SynthesizeServiceWorkerTainting(mozilla::LoadTainting aTainting) override { return _to SynthesizeServiceWorkerTainting(aTainting); } \
using nsILoadInfo::GetDocumentHasUserInteracted; \
NS_IMETHOD GetDocumentHasUserInteracted(bool *aDocumentHasUserInteracted) override { return _to GetDocumentHasUserInteracted(aDocumentHasUserInteracted); } \
NS_IMETHOD SetDocumentHasUserInteracted(bool aDocumentHasUserInteracted) override { return _to SetDocumentHasUserInteracted(aDocumentHasUserInteracted); } \
using nsILoadInfo::GetAllowListFutureDocumentsCreatedFromThisRedirectChain; \
NS_IMETHOD GetAllowListFutureDocumentsCreatedFromThisRedirectChain(bool *aAllowListFutureDocumentsCreatedFromThisRedirectChain) override { return _to GetAllowListFutureDocumentsCreatedFromThisRedirectChain(aAllowListFutureDocumentsCreatedFromThisRedirectChain); } \
NS_IMETHOD SetAllowListFutureDocumentsCreatedFromThisRedirectChain(bool aAllowListFutureDocumentsCreatedFromThisRedirectChain) override { return _to SetAllowListFutureDocumentsCreatedFromThisRedirectChain(aAllowListFutureDocumentsCreatedFromThisRedirectChain); } \
using nsILoadInfo::GetNeedForCheckingAntiTrackingHeuristic; \
NS_IMETHOD GetNeedForCheckingAntiTrackingHeuristic(bool *aNeedForCheckingAntiTrackingHeuristic) override { return _to GetNeedForCheckingAntiTrackingHeuristic(aNeedForCheckingAntiTrackingHeuristic); } \
NS_IMETHOD SetNeedForCheckingAntiTrackingHeuristic(bool aNeedForCheckingAntiTrackingHeuristic) override { return _to SetNeedForCheckingAntiTrackingHeuristic(aNeedForCheckingAntiTrackingHeuristic); } \
NS_IMETHOD GetCspNonce(nsAString& aCspNonce) override { return _to GetCspNonce(aCspNonce); } \
NS_IMETHOD SetCspNonce(const nsAString& aCspNonce) override { return _to SetCspNonce(aCspNonce); } \
NS_IMETHOD GetIntegrityMetadata(nsAString& aIntegrityMetadata) override { return _to GetIntegrityMetadata(aIntegrityMetadata); } \
NS_IMETHOD SetIntegrityMetadata(const nsAString& aIntegrityMetadata) override { return _to SetIntegrityMetadata(aIntegrityMetadata); } \
using nsILoadInfo::GetRequestBlockingReason; \
NS_IMETHOD GetRequestBlockingReason(uint32_t *aRequestBlockingReason) override { return _to GetRequestBlockingReason(aRequestBlockingReason); } \
NS_IMETHOD SetRequestBlockingReason(uint32_t aRequestBlockingReason) override { return _to SetRequestBlockingReason(aRequestBlockingReason); } \
NS_IMETHOD GetCspEventListener(nsICSPEventListener **aCspEventListener) override { return _to GetCspEventListener(aCspEventListener); } \
NS_IMETHOD SetCspEventListener(nsICSPEventListener *aCspEventListener) override { return _to SetCspEventListener(aCspEventListener); } \
using nsILoadInfo::GetIsFromProcessingFrameAttributes; \
NS_IMETHOD GetIsFromProcessingFrameAttributes(bool *aIsFromProcessingFrameAttributes) override { return _to GetIsFromProcessingFrameAttributes(aIsFromProcessingFrameAttributes); } \
using nsILoadInfo::GetLoadingEmbedderPolicy; \
NS_IMETHOD GetLoadingEmbedderPolicy(nsILoadInfo::CrossOriginEmbedderPolicy *aLoadingEmbedderPolicy) override { return _to GetLoadingEmbedderPolicy(aLoadingEmbedderPolicy); } \
NS_IMETHOD SetLoadingEmbedderPolicy(nsILoadInfo::CrossOriginEmbedderPolicy aLoadingEmbedderPolicy) override { return _to SetLoadingEmbedderPolicy(aLoadingEmbedderPolicy); } \
using nsILoadInfo::GetIsOriginTrialCoepCredentiallessEnabledForTopLevel; \
NS_IMETHOD GetIsOriginTrialCoepCredentiallessEnabledForTopLevel(bool *aIsOriginTrialCoepCredentiallessEnabledForTopLevel) override { return _to GetIsOriginTrialCoepCredentiallessEnabledForTopLevel(aIsOriginTrialCoepCredentiallessEnabledForTopLevel); } \
NS_IMETHOD SetIsOriginTrialCoepCredentiallessEnabledForTopLevel(bool aIsOriginTrialCoepCredentiallessEnabledForTopLevel) override { return _to SetIsOriginTrialCoepCredentiallessEnabledForTopLevel(aIsOriginTrialCoepCredentiallessEnabledForTopLevel); } \
using nsILoadInfo::GetIsMediaRequest; \
NS_IMETHOD GetIsMediaRequest(bool *aIsMediaRequest) override { return _to GetIsMediaRequest(aIsMediaRequest); } \
NS_IMETHOD SetIsMediaRequest(bool aIsMediaRequest) override { return _to SetIsMediaRequest(aIsMediaRequest); } \
using nsILoadInfo::GetIsMediaInitialRequest; \
NS_IMETHOD GetIsMediaInitialRequest(bool *aIsMediaInitialRequest) override { return _to GetIsMediaInitialRequest(aIsMediaInitialRequest); } \
NS_IMETHOD SetIsMediaInitialRequest(bool aIsMediaInitialRequest) override { return _to SetIsMediaInitialRequest(aIsMediaInitialRequest); } \
using nsILoadInfo::GetIsFromObjectOrEmbed; \
NS_IMETHOD GetIsFromObjectOrEmbed(bool *aIsFromObjectOrEmbed) override { return _to GetIsFromObjectOrEmbed(aIsFromObjectOrEmbed); } \
NS_IMETHOD SetIsFromObjectOrEmbed(bool aIsFromObjectOrEmbed) override { return _to SetIsFromObjectOrEmbed(aIsFromObjectOrEmbed); } \
using nsILoadInfo::GetShouldSkipCheckForBrokenURLOrZeroSized; \
NS_IMETHOD GetShouldSkipCheckForBrokenURLOrZeroSized(bool *aShouldSkipCheckForBrokenURLOrZeroSized) override { return _to GetShouldSkipCheckForBrokenURLOrZeroSized(aShouldSkipCheckForBrokenURLOrZeroSized); } \
NS_IMETHOD GetUnstrippedURI(nsIURI **aUnstrippedURI) override { return _to GetUnstrippedURI(aUnstrippedURI); } \
NS_IMETHOD SetUnstrippedURI(nsIURI *aUnstrippedURI) override { return _to SetUnstrippedURI(aUnstrippedURI); } \
virtual nsIInterceptionInfo * InterceptionInfo(void) override { return _to InterceptionInfo(); } \
virtual void SetInterceptionInfo(nsIInterceptionInfo *info) override { return _to SetInterceptionInfo(info); } \
using nsILoadInfo::GetHasInjectedCookieForCookieBannerHandling; \
NS_IMETHOD GetHasInjectedCookieForCookieBannerHandling(bool *aHasInjectedCookieForCookieBannerHandling) override { return _to GetHasInjectedCookieForCookieBannerHandling(aHasInjectedCookieForCookieBannerHandling); } \
NS_IMETHOD SetHasInjectedCookieForCookieBannerHandling(bool aHasInjectedCookieForCookieBannerHandling) override { return _to SetHasInjectedCookieForCookieBannerHandling(aHasInjectedCookieForCookieBannerHandling); } \
using nsILoadInfo::GetSchemelessInput; \
NS_IMETHOD GetSchemelessInput(nsILoadInfo::SchemelessInputType *aSchemelessInput) override { return _to GetSchemelessInput(aSchemelessInput); } \
NS_IMETHOD SetSchemelessInput(nsILoadInfo::SchemelessInputType aSchemelessInput) override { return _to SetSchemelessInput(aSchemelessInput); } \
using nsILoadInfo::GetHttpsUpgradeTelemetry; \
NS_IMETHOD GetHttpsUpgradeTelemetry(nsILoadInfo::HTTPSUpgradeTelemetryType *aHttpsUpgradeTelemetry) override { return _to GetHttpsUpgradeTelemetry(aHttpsUpgradeTelemetry); } \
NS_IMETHOD SetHttpsUpgradeTelemetry(nsILoadInfo::HTTPSUpgradeTelemetryType aHttpsUpgradeTelemetry) override { return _to SetHttpsUpgradeTelemetry(aHttpsUpgradeTelemetry); } \
using nsILoadInfo::GetIsNewWindowTarget; \
NS_IMETHOD GetIsNewWindowTarget(bool *aIsNewWindowTarget) override { return _to GetIsNewWindowTarget(aIsNewWindowTarget); } \
NS_IMETHOD SetIsNewWindowTarget(bool aIsNewWindowTarget) override { return _to SetIsNewWindowTarget(aIsNewWindowTarget); } \
using nsILoadInfo::GetSkipHTTPSUpgrade; \
NS_IMETHOD GetSkipHTTPSUpgrade(bool *aSkipHTTPSUpgrade) override { return _to GetSkipHTTPSUpgrade(aSkipHTTPSUpgrade); } \
NS_IMETHOD SetSkipHTTPSUpgrade(bool aSkipHTTPSUpgrade) override { return _to SetSkipHTTPSUpgrade(aSkipHTTPSUpgrade); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILOADINFO(_to) \
NS_IMETHOD GetLoadingPrincipal(nsIPrincipal **aLoadingPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadingPrincipal(aLoadingPrincipal); } \
virtual nsIPrincipal * VirtualGetLoadingPrincipal(void) override; \
NS_IMETHOD GetTriggeringPrincipal(nsIPrincipal **aTriggeringPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTriggeringPrincipal(aTriggeringPrincipal); } \
virtual nsIPrincipal * TriggeringPrincipal(void) override; \
NS_IMETHOD GetTriggeringRemoteType(nsACString& aTriggeringRemoteType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTriggeringRemoteType(aTriggeringRemoteType); } \
NS_IMETHOD SetTriggeringRemoteType(const nsACString& aTriggeringRemoteType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTriggeringRemoteType(aTriggeringRemoteType); } \
NS_IMETHOD GetPrincipalToInherit(nsIPrincipal **aPrincipalToInherit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipalToInherit(aPrincipalToInherit); } \
NS_IMETHOD SetPrincipalToInherit(nsIPrincipal *aPrincipalToInherit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrincipalToInherit(aPrincipalToInherit); } \
virtual nsIPrincipal * PrincipalToInherit(void) override; \
virtual nsIPrincipal * FindPrincipalToInherit(nsIChannel *aChannel) override; \
NS_IMETHOD GetLoadingDocument(mozilla::dom::Document **aLoadingDocument) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadingDocument(aLoadingDocument); } \
virtual nsINode * LoadingNode(void) override; \
virtual already_AddRefed<nsISupports> ContextForTopLevelLoad(void) override; \
NS_IMETHOD GetLoadingContextXPCOM(nsISupports **aLoadingContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadingContextXPCOM(aLoadingContext); } \
virtual already_AddRefed<nsISupports> GetLoadingContext(void) override; \
NS_IMETHOD GetSecurityFlags(nsSecurityFlags *aSecurityFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityFlags(aSecurityFlags); } \
NS_IMETHOD GetSandboxFlags(uint32_t *aSandboxFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSandboxFlags(aSandboxFlags); } \
NS_IMETHOD GetTriggeringSandboxFlags(uint32_t *aTriggeringSandboxFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTriggeringSandboxFlags(aTriggeringSandboxFlags); } \
NS_IMETHOD SetTriggeringSandboxFlags(uint32_t aTriggeringSandboxFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTriggeringSandboxFlags(aTriggeringSandboxFlags); } \
NS_IMETHOD GetTriggeringWindowId(uint64_t *aTriggeringWindowId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTriggeringWindowId(aTriggeringWindowId); } \
NS_IMETHOD SetTriggeringWindowId(uint64_t aTriggeringWindowId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTriggeringWindowId(aTriggeringWindowId); } \
NS_IMETHOD GetTriggeringStorageAccess(bool *aTriggeringStorageAccess) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTriggeringStorageAccess(aTriggeringStorageAccess); } \
NS_IMETHOD SetTriggeringStorageAccess(bool aTriggeringStorageAccess) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTriggeringStorageAccess(aTriggeringStorageAccess); } \
NS_IMETHOD GetSecurityMode(uint32_t *aSecurityMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityMode(aSecurityMode); } \
NS_IMETHOD GetSkipContentSniffing(bool *aSkipContentSniffing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSkipContentSniffing(aSkipContentSniffing); } \
NS_IMETHOD SetSkipContentSniffing(bool aSkipContentSniffing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSkipContentSniffing(aSkipContentSniffing); } \
NS_IMETHOD GetHttpsOnlyStatus(uint32_t *aHttpsOnlyStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHttpsOnlyStatus(aHttpsOnlyStatus); } \
NS_IMETHOD SetHttpsOnlyStatus(uint32_t aHttpsOnlyStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHttpsOnlyStatus(aHttpsOnlyStatus); } \
NS_IMETHOD GetHstsStatus(bool *aHstsStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHstsStatus(aHstsStatus); } \
NS_IMETHOD SetHstsStatus(bool aHstsStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHstsStatus(aHstsStatus); } \
NS_IMETHOD GetHasValidUserGestureActivation(bool *aHasValidUserGestureActivation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasValidUserGestureActivation(aHasValidUserGestureActivation); } \
NS_IMETHOD SetHasValidUserGestureActivation(bool aHasValidUserGestureActivation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHasValidUserGestureActivation(aHasValidUserGestureActivation); } \
NS_IMETHOD GetTextDirectiveUserActivation(bool *aTextDirectiveUserActivation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextDirectiveUserActivation(aTextDirectiveUserActivation); } \
NS_IMETHOD SetTextDirectiveUserActivation(bool aTextDirectiveUserActivation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextDirectiveUserActivation(aTextDirectiveUserActivation); } \
NS_IMETHOD GetIsSameDocumentNavigation(bool *aIsSameDocumentNavigation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSameDocumentNavigation(aIsSameDocumentNavigation); } \
NS_IMETHOD SetIsSameDocumentNavigation(bool aIsSameDocumentNavigation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsSameDocumentNavigation(aIsSameDocumentNavigation); } \
NS_IMETHOD GetAllowDeprecatedSystemRequests(bool *aAllowDeprecatedSystemRequests) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowDeprecatedSystemRequests(aAllowDeprecatedSystemRequests); } \
NS_IMETHOD SetAllowDeprecatedSystemRequests(bool aAllowDeprecatedSystemRequests) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowDeprecatedSystemRequests(aAllowDeprecatedSystemRequests); } \
NS_IMETHOD GetParserCreatedScript(bool *aParserCreatedScript) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParserCreatedScript(aParserCreatedScript); } \
NS_IMETHOD SetParserCreatedScript(bool aParserCreatedScript) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParserCreatedScript(aParserCreatedScript); } \
NS_IMETHOD GetIsUserTriggeredSave(bool *aIsUserTriggeredSave) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsUserTriggeredSave(aIsUserTriggeredSave); } \
NS_IMETHOD SetIsUserTriggeredSave(bool aIsUserTriggeredSave) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsUserTriggeredSave(aIsUserTriggeredSave); } \
NS_IMETHOD GetIsInDevToolsContext(bool *aIsInDevToolsContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsInDevToolsContext(aIsInDevToolsContext); } \
NS_IMETHOD SetIsInDevToolsContext(bool aIsInDevToolsContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsInDevToolsContext(aIsInDevToolsContext); } \
NS_IMETHOD GetIsInThirdPartyContext(bool *aIsInThirdPartyContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsInThirdPartyContext(aIsInThirdPartyContext); } \
NS_IMETHOD SetIsInThirdPartyContext(bool aIsInThirdPartyContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsInThirdPartyContext(aIsInThirdPartyContext); } \
NS_IMETHOD GetIsThirdPartyContextToTopWindow(bool *aIsThirdPartyContextToTopWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsThirdPartyContextToTopWindow(aIsThirdPartyContextToTopWindow); } \
NS_IMETHOD SetIsThirdPartyContextToTopWindow(bool aIsThirdPartyContextToTopWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsThirdPartyContextToTopWindow(aIsThirdPartyContextToTopWindow); } \
NS_IMETHOD GetCookiePolicy(uint32_t *aCookiePolicy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCookiePolicy(aCookiePolicy); } \
NS_IMETHOD GetCookieJarSettings(nsICookieJarSettings **aCookieJarSettings) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCookieJarSettings(aCookieJarSettings); } \
NS_IMETHOD SetCookieJarSettings(nsICookieJarSettings *aCookieJarSettings) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCookieJarSettings(aCookieJarSettings); } \
NS_IMETHOD GetStoragePermission(nsILoadInfo::StoragePermissionState *aStoragePermission) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStoragePermission(aStoragePermission); } \
NS_IMETHOD SetStoragePermission(nsILoadInfo::StoragePermissionState aStoragePermission) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStoragePermission(aStoragePermission); } \
virtual const mozilla::Maybe<mozilla::RFPTarget> & GetOverriddenFingerprintingSettings(void) override; \
virtual void SetOverriddenFingerprintingSettings(mozilla::RFPTarget aTargets) override; \
NS_IMETHOD GetIsMetaRefresh(bool *aIsMetaRefresh) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMetaRefresh(aIsMetaRefresh); } \
NS_IMETHOD SetIsMetaRefresh(bool aIsMetaRefresh) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsMetaRefresh(aIsMetaRefresh); } \
NS_IMETHOD GetForceInheritPrincipal(bool *aForceInheritPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForceInheritPrincipal(aForceInheritPrincipal); } \
NS_IMETHOD GetForceInheritPrincipalOverruleOwner(bool *aForceInheritPrincipalOverruleOwner) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForceInheritPrincipalOverruleOwner(aForceInheritPrincipalOverruleOwner); } \
NS_IMETHOD GetLoadingSandboxed(bool *aLoadingSandboxed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadingSandboxed(aLoadingSandboxed); } \
NS_IMETHOD GetAboutBlankInherits(bool *aAboutBlankInherits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAboutBlankInherits(aAboutBlankInherits); } \
NS_IMETHOD GetAllowChrome(bool *aAllowChrome) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowChrome(aAllowChrome); } \
NS_IMETHOD GetDisallowScript(bool *aDisallowScript) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisallowScript(aDisallowScript); } \
NS_IMETHOD GetDontFollowRedirects(bool *aDontFollowRedirects) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDontFollowRedirects(aDontFollowRedirects); } \
NS_IMETHOD GetLoadErrorPage(bool *aLoadErrorPage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadErrorPage(aLoadErrorPage); } \
NS_IMETHOD GetIsFormSubmission(bool *aIsFormSubmission) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFormSubmission(aIsFormSubmission); } \
NS_IMETHOD SetIsFormSubmission(bool aIsFormSubmission) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsFormSubmission(aIsFormSubmission); } \
NS_IMETHOD GetIsGETRequest(bool *aIsGETRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsGETRequest(aIsGETRequest); } \
NS_IMETHOD SetIsGETRequest(bool aIsGETRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsGETRequest(aIsGETRequest); } \
NS_IMETHOD GetExternalContentPolicyType(nsContentPolicyType *aExternalContentPolicyType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExternalContentPolicyType(aExternalContentPolicyType); } \
NS_IMETHOD GetSendCSPViolationEvents(bool *aSendCSPViolationEvents) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSendCSPViolationEvents(aSendCSPViolationEvents); } \
NS_IMETHOD SetSendCSPViolationEvents(bool aSendCSPViolationEvents) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSendCSPViolationEvents(aSendCSPViolationEvents); } \
virtual nsContentPolicyType InternalContentPolicyType(void) override; \
NS_IMETHOD GetInternalContentPolicyType(nsContentPolicyType *aInternalContentPolicyType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInternalContentPolicyType(aInternalContentPolicyType); } \
NS_IMETHOD GetFetchDestination(nsACString& aFetchDestination) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFetchDestination(aFetchDestination); } \
NS_IMETHOD GetBlockAllMixedContent(bool *aBlockAllMixedContent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBlockAllMixedContent(aBlockAllMixedContent); } \
NS_IMETHOD GetUpgradeInsecureRequests(bool *aUpgradeInsecureRequests) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpgradeInsecureRequests(aUpgradeInsecureRequests); } \
NS_IMETHOD GetBrowserUpgradeInsecureRequests(bool *aBrowserUpgradeInsecureRequests) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBrowserUpgradeInsecureRequests(aBrowserUpgradeInsecureRequests); } \
NS_IMETHOD GetBrowserDidUpgradeInsecureRequests(bool *aBrowserDidUpgradeInsecureRequests) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBrowserDidUpgradeInsecureRequests(aBrowserDidUpgradeInsecureRequests); } \
NS_IMETHOD SetBrowserDidUpgradeInsecureRequests(bool aBrowserDidUpgradeInsecureRequests) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBrowserDidUpgradeInsecureRequests(aBrowserDidUpgradeInsecureRequests); } \
NS_IMETHOD GetBrowserWouldUpgradeInsecureRequests(bool *aBrowserWouldUpgradeInsecureRequests) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBrowserWouldUpgradeInsecureRequests(aBrowserWouldUpgradeInsecureRequests); } \
NS_IMETHOD GetForceAllowDataURI(bool *aForceAllowDataURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForceAllowDataURI(aForceAllowDataURI); } \
NS_IMETHOD SetForceAllowDataURI(bool aForceAllowDataURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetForceAllowDataURI(aForceAllowDataURI); } \
NS_IMETHOD GetAllowInsecureRedirectToDataURI(bool *aAllowInsecureRedirectToDataURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowInsecureRedirectToDataURI(aAllowInsecureRedirectToDataURI); } \
NS_IMETHOD SetAllowInsecureRedirectToDataURI(bool aAllowInsecureRedirectToDataURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowInsecureRedirectToDataURI(aAllowInsecureRedirectToDataURI); } \
NS_IMETHOD GetSkipContentPolicyCheckForWebRequest(bool *aSkipContentPolicyCheckForWebRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSkipContentPolicyCheckForWebRequest(aSkipContentPolicyCheckForWebRequest); } \
NS_IMETHOD SetSkipContentPolicyCheckForWebRequest(bool aSkipContentPolicyCheckForWebRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSkipContentPolicyCheckForWebRequest(aSkipContentPolicyCheckForWebRequest); } \
NS_IMETHOD GetOriginalFrameSrcLoad(bool *aOriginalFrameSrcLoad) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginalFrameSrcLoad(aOriginalFrameSrcLoad); } \
NS_IMETHOD SetOriginalFrameSrcLoad(bool aOriginalFrameSrcLoad) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOriginalFrameSrcLoad(aOriginalFrameSrcLoad); } \
NS_IMETHOD GetForceInheritPrincipalDropped(bool *aForceInheritPrincipalDropped) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForceInheritPrincipalDropped(aForceInheritPrincipalDropped); } \
NS_IMETHOD GetInnerWindowID(uint64_t *aInnerWindowID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInnerWindowID(aInnerWindowID); } \
NS_IMETHOD GetBrowsingContextID(uint64_t *aBrowsingContextID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBrowsingContextID(aBrowsingContextID); } \
NS_IMETHOD GetBrowsingContext(mozilla::dom::BrowsingContext **aBrowsingContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBrowsingContext(aBrowsingContext); } \
NS_IMETHOD GetWorkerAssociatedBrowsingContextID(uint64_t *aWorkerAssociatedBrowsingContextID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWorkerAssociatedBrowsingContextID(aWorkerAssociatedBrowsingContextID); } \
NS_IMETHOD SetWorkerAssociatedBrowsingContextID(uint64_t aWorkerAssociatedBrowsingContextID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWorkerAssociatedBrowsingContextID(aWorkerAssociatedBrowsingContextID); } \
NS_IMETHOD GetWorkerAssociatedBrowsingContext(mozilla::dom::BrowsingContext **aWorkerAssociatedBrowsingContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWorkerAssociatedBrowsingContext(aWorkerAssociatedBrowsingContext); } \
NS_IMETHOD GetFrameBrowsingContextID(uint64_t *aFrameBrowsingContextID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrameBrowsingContextID(aFrameBrowsingContextID); } \
NS_IMETHOD GetFrameBrowsingContext(mozilla::dom::BrowsingContext **aFrameBrowsingContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrameBrowsingContext(aFrameBrowsingContext); } \
NS_IMETHOD GetTargetBrowsingContextID(uint64_t *aTargetBrowsingContextID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetBrowsingContextID(aTargetBrowsingContextID); } \
NS_IMETHOD GetTargetBrowsingContext(mozilla::dom::BrowsingContext **aTargetBrowsingContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetBrowsingContext(aTargetBrowsingContext); } \
NS_IMETHOD ResetPrincipalToInheritToNullPrincipal(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetPrincipalToInheritToNullPrincipal(); } \
NS_IMETHOD GetScriptableOriginAttributes(JSContext* cx, JS::MutableHandle<JS::Value> aOriginAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScriptableOriginAttributes(cx, aOriginAttributes); } \
NS_IMETHOD SetScriptableOriginAttributes(JSContext* cx, JS::Handle<JS::Value> aOriginAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScriptableOriginAttributes(cx, aOriginAttributes); } \
virtual nsresult GetOriginAttributes(mozilla::OriginAttributes * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginAttributes(_retval); } \
virtual nsresult SetOriginAttributes(const mozilla::OriginAttributes & aOriginAttrs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOriginAttributes(aOriginAttrs); } \
NS_IMETHOD GetInitialSecurityCheckDone(bool *aInitialSecurityCheckDone) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInitialSecurityCheckDone(aInitialSecurityCheckDone); } \
NS_IMETHOD SetInitialSecurityCheckDone(bool aInitialSecurityCheckDone) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInitialSecurityCheckDone(aInitialSecurityCheckDone); } \
NS_IMETHOD GetLoadTriggeredFromExternal(bool *aLoadTriggeredFromExternal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadTriggeredFromExternal(aLoadTriggeredFromExternal); } \
NS_IMETHOD SetLoadTriggeredFromExternal(bool aLoadTriggeredFromExternal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadTriggeredFromExternal(aLoadTriggeredFromExternal); } \
NS_IMETHOD GetServiceWorkerTaintingSynthesized(bool *aServiceWorkerTaintingSynthesized) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceWorkerTaintingSynthesized(aServiceWorkerTaintingSynthesized); } \
NS_IMETHOD AppendRedirectHistoryEntry(nsIChannel *channelToDeriveFrom, bool isInternalRedirect) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendRedirectHistoryEntry(channelToDeriveFrom, isInternalRedirect); } \
NS_IMETHOD GetRedirectChainIncludingInternalRedirects(JSContext* cx, JS::MutableHandle<JS::Value> aRedirectChainIncludingInternalRedirects) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRedirectChainIncludingInternalRedirects(cx, aRedirectChainIncludingInternalRedirects); } \
virtual const nsTArray<nsCOMPtr<nsIRedirectHistoryEntry>> & RedirectChainIncludingInternalRedirects(void) override; \
NS_IMETHOD GetRedirectChain(JSContext* cx, JS::MutableHandle<JS::Value> aRedirectChain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRedirectChain(cx, aRedirectChain); } \
virtual const nsTArray<nsCOMPtr<nsIRedirectHistoryEntry>> & RedirectChain(void) override; \
virtual const nsTArray<nsCOMPtr<nsIPrincipal>> & AncestorPrincipals(void) override; \
virtual const nsTArray<uint64_t> & AncestorBrowsingContextIDs(void) override; \
virtual void SetCorsPreflightInfo(const nsTArray<nsCString> & unsafeHeaders, bool forcePreflight) override; \
virtual const nsTArray<nsCString> & CorsUnsafeHeaders(void) override; \
NS_IMETHOD GetForcePreflight(bool *aForcePreflight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForcePreflight(aForcePreflight); } \
NS_IMETHOD GetIsPreflight(bool *aIsPreflight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsPreflight(aIsPreflight); } \
NS_IMETHOD GetTainting(uint32_t *aTainting) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTainting(aTainting); } \
NS_IMETHOD MaybeIncreaseTainting(uint32_t aTainting) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MaybeIncreaseTainting(aTainting); } \
NS_IMETHOD GetIsTopLevelLoad(bool *aIsTopLevelLoad) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsTopLevelLoad(aIsTopLevelLoad); } \
NS_IMETHOD GetResultPrincipalURI(nsIURI **aResultPrincipalURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResultPrincipalURI(aResultPrincipalURI); } \
NS_IMETHOD SetResultPrincipalURI(nsIURI *aResultPrincipalURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResultPrincipalURI(aResultPrincipalURI); } \
NS_IMETHOD GetChannelCreationOriginalURI(nsIURI **aChannelCreationOriginalURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChannelCreationOriginalURI(aChannelCreationOriginalURI); } \
NS_IMETHOD SetChannelCreationOriginalURI(nsIURI *aChannelCreationOriginalURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChannelCreationOriginalURI(aChannelCreationOriginalURI); } \
virtual const nsID & GetSandboxedNullPrincipalID(void) override; \
virtual void ResetSandboxedNullPrincipalID(void) override; \
virtual nsIPrincipal * GetTopLevelPrincipal() override; \
virtual void SetClientInfo(const mozilla::dom::ClientInfo & aClientInfo) override; \
virtual const mozilla::Maybe<mozilla::dom::ClientInfo> & GetClientInfo(void) override; \
virtual void GiveReservedClientSource(mozilla::UniquePtr<mozilla::dom::ClientSource>&& aClientSource) override; \
virtual mozilla::UniquePtr<mozilla::dom::ClientSource> TakeReservedClientSource(void) override; \
virtual void SetReservedClientInfo(const mozilla::dom::ClientInfo & aClientInfo) override; \
virtual void OverrideReservedClientInfoInParent(const mozilla::dom::ClientInfo & aClientInfo) override; \
virtual const mozilla::Maybe<mozilla::dom::ClientInfo> & GetReservedClientInfo(void) override; \
virtual void SetInitialClientInfo(const mozilla::dom::ClientInfo & aClientInfo) override; \
virtual const mozilla::Maybe<mozilla::dom::ClientInfo> & GetInitialClientInfo(void) override; \
virtual void SetController(const mozilla::dom::ServiceWorkerDescriptor & aServiceWorker) override; \
virtual void ClearController(void) override; \
virtual const mozilla::Maybe<mozilla::dom::ServiceWorkerDescriptor> & GetController(void) override; \
virtual void SetPerformanceStorage(mozilla::dom::PerformanceStorage * aPerformanceStorage) override; \
virtual mozilla::dom::PerformanceStorage * GetPerformanceStorage(void) override; \
virtual already_AddRefed<nsIContentSecurityPolicy> GetCsp(void) override; \
virtual already_AddRefed<nsIContentSecurityPolicy> GetPreloadCsp(void) override; \
virtual already_AddRefed<nsIContentSecurityPolicy> GetCspToInherit(void) override; \
virtual mozilla::Maybe<mozilla::dom::FeaturePolicyInfo> GetContainerFeaturePolicyInfo(void) override; \
virtual void SetContainerFeaturePolicyInfo(const mozilla::dom::FeaturePolicyInfo & aContainerFeaturePolicy) override; \
virtual void SynthesizeServiceWorkerTainting(mozilla::LoadTainting aTainting) override; \
NS_IMETHOD GetDocumentHasUserInteracted(bool *aDocumentHasUserInteracted) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentHasUserInteracted(aDocumentHasUserInteracted); } \
NS_IMETHOD SetDocumentHasUserInteracted(bool aDocumentHasUserInteracted) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocumentHasUserInteracted(aDocumentHasUserInteracted); } \
NS_IMETHOD GetAllowListFutureDocumentsCreatedFromThisRedirectChain(bool *aAllowListFutureDocumentsCreatedFromThisRedirectChain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowListFutureDocumentsCreatedFromThisRedirectChain(aAllowListFutureDocumentsCreatedFromThisRedirectChain); } \
NS_IMETHOD SetAllowListFutureDocumentsCreatedFromThisRedirectChain(bool aAllowListFutureDocumentsCreatedFromThisRedirectChain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowListFutureDocumentsCreatedFromThisRedirectChain(aAllowListFutureDocumentsCreatedFromThisRedirectChain); } \
NS_IMETHOD GetNeedForCheckingAntiTrackingHeuristic(bool *aNeedForCheckingAntiTrackingHeuristic) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNeedForCheckingAntiTrackingHeuristic(aNeedForCheckingAntiTrackingHeuristic); } \
NS_IMETHOD SetNeedForCheckingAntiTrackingHeuristic(bool aNeedForCheckingAntiTrackingHeuristic) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNeedForCheckingAntiTrackingHeuristic(aNeedForCheckingAntiTrackingHeuristic); } \
NS_IMETHOD GetCspNonce(nsAString& aCspNonce) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCspNonce(aCspNonce); } \
NS_IMETHOD SetCspNonce(const nsAString& aCspNonce) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCspNonce(aCspNonce); } \
NS_IMETHOD GetIntegrityMetadata(nsAString& aIntegrityMetadata) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIntegrityMetadata(aIntegrityMetadata); } \
NS_IMETHOD SetIntegrityMetadata(const nsAString& aIntegrityMetadata) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIntegrityMetadata(aIntegrityMetadata); } \
NS_IMETHOD GetRequestBlockingReason(uint32_t *aRequestBlockingReason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestBlockingReason(aRequestBlockingReason); } \
NS_IMETHOD SetRequestBlockingReason(uint32_t aRequestBlockingReason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestBlockingReason(aRequestBlockingReason); } \
NS_IMETHOD GetCspEventListener(nsICSPEventListener **aCspEventListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCspEventListener(aCspEventListener); } \
NS_IMETHOD SetCspEventListener(nsICSPEventListener *aCspEventListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCspEventListener(aCspEventListener); } \
NS_IMETHOD GetIsFromProcessingFrameAttributes(bool *aIsFromProcessingFrameAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFromProcessingFrameAttributes(aIsFromProcessingFrameAttributes); } \
NS_IMETHOD GetLoadingEmbedderPolicy(nsILoadInfo::CrossOriginEmbedderPolicy *aLoadingEmbedderPolicy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadingEmbedderPolicy(aLoadingEmbedderPolicy); } \
NS_IMETHOD SetLoadingEmbedderPolicy(nsILoadInfo::CrossOriginEmbedderPolicy aLoadingEmbedderPolicy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadingEmbedderPolicy(aLoadingEmbedderPolicy); } \
NS_IMETHOD GetIsOriginTrialCoepCredentiallessEnabledForTopLevel(bool *aIsOriginTrialCoepCredentiallessEnabledForTopLevel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsOriginTrialCoepCredentiallessEnabledForTopLevel(aIsOriginTrialCoepCredentiallessEnabledForTopLevel); } \
NS_IMETHOD SetIsOriginTrialCoepCredentiallessEnabledForTopLevel(bool aIsOriginTrialCoepCredentiallessEnabledForTopLevel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsOriginTrialCoepCredentiallessEnabledForTopLevel(aIsOriginTrialCoepCredentiallessEnabledForTopLevel); } \
NS_IMETHOD GetIsMediaRequest(bool *aIsMediaRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMediaRequest(aIsMediaRequest); } \
NS_IMETHOD SetIsMediaRequest(bool aIsMediaRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsMediaRequest(aIsMediaRequest); } \
NS_IMETHOD GetIsMediaInitialRequest(bool *aIsMediaInitialRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMediaInitialRequest(aIsMediaInitialRequest); } \
NS_IMETHOD SetIsMediaInitialRequest(bool aIsMediaInitialRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsMediaInitialRequest(aIsMediaInitialRequest); } \
NS_IMETHOD GetIsFromObjectOrEmbed(bool *aIsFromObjectOrEmbed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFromObjectOrEmbed(aIsFromObjectOrEmbed); } \
NS_IMETHOD SetIsFromObjectOrEmbed(bool aIsFromObjectOrEmbed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsFromObjectOrEmbed(aIsFromObjectOrEmbed); } \
NS_IMETHOD GetShouldSkipCheckForBrokenURLOrZeroSized(bool *aShouldSkipCheckForBrokenURLOrZeroSized) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShouldSkipCheckForBrokenURLOrZeroSized(aShouldSkipCheckForBrokenURLOrZeroSized); } \
NS_IMETHOD GetUnstrippedURI(nsIURI **aUnstrippedURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnstrippedURI(aUnstrippedURI); } \
NS_IMETHOD SetUnstrippedURI(nsIURI *aUnstrippedURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUnstrippedURI(aUnstrippedURI); } \
virtual nsIInterceptionInfo * InterceptionInfo(void) override; \
virtual void SetInterceptionInfo(nsIInterceptionInfo *info) override; \
NS_IMETHOD GetHasInjectedCookieForCookieBannerHandling(bool *aHasInjectedCookieForCookieBannerHandling) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasInjectedCookieForCookieBannerHandling(aHasInjectedCookieForCookieBannerHandling); } \
NS_IMETHOD SetHasInjectedCookieForCookieBannerHandling(bool aHasInjectedCookieForCookieBannerHandling) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHasInjectedCookieForCookieBannerHandling(aHasInjectedCookieForCookieBannerHandling); } \
NS_IMETHOD GetSchemelessInput(nsILoadInfo::SchemelessInputType *aSchemelessInput) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSchemelessInput(aSchemelessInput); } \
NS_IMETHOD SetSchemelessInput(nsILoadInfo::SchemelessInputType aSchemelessInput) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSchemelessInput(aSchemelessInput); } \
NS_IMETHOD GetHttpsUpgradeTelemetry(nsILoadInfo::HTTPSUpgradeTelemetryType *aHttpsUpgradeTelemetry) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHttpsUpgradeTelemetry(aHttpsUpgradeTelemetry); } \
NS_IMETHOD SetHttpsUpgradeTelemetry(nsILoadInfo::HTTPSUpgradeTelemetryType aHttpsUpgradeTelemetry) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHttpsUpgradeTelemetry(aHttpsUpgradeTelemetry); } \
NS_IMETHOD GetIsNewWindowTarget(bool *aIsNewWindowTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsNewWindowTarget(aIsNewWindowTarget); } \
NS_IMETHOD SetIsNewWindowTarget(bool aIsNewWindowTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsNewWindowTarget(aIsNewWindowTarget); } \
NS_IMETHOD GetSkipHTTPSUpgrade(bool *aSkipHTTPSUpgrade) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSkipHTTPSUpgrade(aSkipHTTPSUpgrade); } \
NS_IMETHOD SetSkipHTTPSUpgrade(bool aSkipHTTPSUpgrade) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSkipHTTPSUpgrade(aSkipHTTPSUpgrade); }
#endif /* __gen_nsILoadInfo_h__ */