1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "TRRLoadInfo.h"
8 #include "mozilla/dom/ClientSource.h"
9 #include "mozilla/dom/FeaturePolicy.h"
10 #include "mozilla/dom/DOMTypes.h"
11 #include "nsContentUtils.h"
12 #include "nsIRedirectHistoryEntry.h"
14 using namespace mozilla::dom
;
19 NS_IMPL_ISUPPORTS(TRRLoadInfo
, nsILoadInfo
)
21 TRRLoadInfo::TRRLoadInfo(nsIURI
* aResultPrincipalURI
,
22 nsContentPolicyType aContentPolicyType
)
23 : mResultPrincipalURI(aResultPrincipalURI
),
24 mInternalContentPolicyType(aContentPolicyType
) {}
26 already_AddRefed
<nsILoadInfo
> TRRLoadInfo::Clone() const {
27 nsCOMPtr
<nsILoadInfo
> loadInfo
=
28 new TRRLoadInfo(mResultPrincipalURI
, mInternalContentPolicyType
);
30 return loadInfo
.forget();
34 TRRLoadInfo::GetLoadingPrincipal(nsIPrincipal
** aLoadingPrincipal
) {
35 return NS_ERROR_NOT_IMPLEMENTED
;
38 nsIPrincipal
* TRRLoadInfo::VirtualGetLoadingPrincipal() { return nullptr; }
41 TRRLoadInfo::GetTriggeringPrincipal(nsIPrincipal
** aTriggeringPrincipal
) {
42 return NS_ERROR_NOT_IMPLEMENTED
;
45 nsIPrincipal
* TRRLoadInfo::TriggeringPrincipal() { return nullptr; }
48 TRRLoadInfo::GetPrincipalToInherit(nsIPrincipal
** aPrincipalToInherit
) {
49 return NS_ERROR_NOT_IMPLEMENTED
;
53 TRRLoadInfo::SetPrincipalToInherit(nsIPrincipal
* aPrincipalToInherit
) {
54 return NS_ERROR_NOT_IMPLEMENTED
;
57 nsIPrincipal
* TRRLoadInfo::PrincipalToInherit() { return nullptr; }
59 nsIPrincipal
* TRRLoadInfo::FindPrincipalToInherit(nsIChannel
* aChannel
) {
63 const nsID
& TRRLoadInfo::GetSandboxedNullPrincipalID() {
64 return mSandboxedNullPrincipalID
;
67 void TRRLoadInfo::ResetSandboxedNullPrincipalID() {}
69 nsIPrincipal
* TRRLoadInfo::GetTopLevelPrincipal() { return nullptr; }
72 TRRLoadInfo::GetTriggeringRemoteType(nsACString
& aTriggeringRemoteType
) {
73 return NS_ERROR_NOT_IMPLEMENTED
;
77 TRRLoadInfo::SetTriggeringRemoteType(const nsACString
& aTriggeringRemoteType
) {
78 return NS_ERROR_NOT_IMPLEMENTED
;
82 TRRLoadInfo::GetLoadingDocument(Document
** aResult
) {
83 return NS_ERROR_NOT_IMPLEMENTED
;
86 nsINode
* TRRLoadInfo::LoadingNode() { return nullptr; }
88 already_AddRefed
<nsISupports
> TRRLoadInfo::ContextForTopLevelLoad() {
92 already_AddRefed
<nsISupports
> TRRLoadInfo::GetLoadingContext() {
97 TRRLoadInfo::GetLoadingContextXPCOM(nsISupports
** aResult
) {
98 return NS_ERROR_NOT_IMPLEMENTED
;
102 TRRLoadInfo::GetSecurityFlags(nsSecurityFlags
* aResult
) {
103 return NS_ERROR_NOT_IMPLEMENTED
;
107 TRRLoadInfo::GetSandboxFlags(uint32_t* aResult
) {
108 return NS_ERROR_NOT_IMPLEMENTED
;
111 TRRLoadInfo::GetTriggeringSandboxFlags(uint32_t* aResult
) {
112 return NS_ERROR_NOT_IMPLEMENTED
;
115 TRRLoadInfo::SetTriggeringSandboxFlags(uint32_t aResult
) {
116 return NS_ERROR_NOT_IMPLEMENTED
;
120 TRRLoadInfo::GetTriggeringWindowId(uint64_t* aResult
) {
121 return NS_ERROR_NOT_IMPLEMENTED
;
124 TRRLoadInfo::SetTriggeringWindowId(uint64_t aResult
) {
125 return NS_ERROR_NOT_IMPLEMENTED
;
129 TRRLoadInfo::GetTriggeringStorageAccess(bool* aResult
) {
130 return NS_ERROR_NOT_IMPLEMENTED
;
133 TRRLoadInfo::SetTriggeringStorageAccess(bool aResult
) {
134 return NS_ERROR_NOT_IMPLEMENTED
;
138 TRRLoadInfo::GetSecurityMode(uint32_t* aFlags
) {
139 return NS_ERROR_NOT_IMPLEMENTED
;
143 TRRLoadInfo::GetIsInThirdPartyContext(bool* aIsInThirdPartyContext
) {
144 return NS_ERROR_NOT_IMPLEMENTED
;
148 TRRLoadInfo::SetIsInThirdPartyContext(bool aIsInThirdPartyContext
) {
149 return NS_ERROR_NOT_IMPLEMENTED
;
153 TRRLoadInfo::GetIsThirdPartyContextToTopWindow(
154 bool* aIsThirdPartyContextToTopWindow
) {
155 return NS_ERROR_NOT_IMPLEMENTED
;
159 TRRLoadInfo::SetIsThirdPartyContextToTopWindow(
160 bool aIsThirdPartyContextToTopWindow
) {
161 return NS_ERROR_NOT_IMPLEMENTED
;
165 TRRLoadInfo::GetCookiePolicy(uint32_t* aResult
) {
166 return NS_ERROR_NOT_IMPLEMENTED
;
170 TRRLoadInfo::GetCookieJarSettings(nsICookieJarSettings
** aCookieJarSettings
) {
171 return NS_ERROR_NOT_IMPLEMENTED
;
175 TRRLoadInfo::SetCookieJarSettings(nsICookieJarSettings
* aCookieJarSettings
) {
176 return NS_ERROR_NOT_IMPLEMENTED
;
180 TRRLoadInfo::GetStoragePermission(
181 nsILoadInfo::StoragePermissionState
* aHasStoragePermission
) {
182 return NS_ERROR_NOT_IMPLEMENTED
;
186 TRRLoadInfo::SetStoragePermission(
187 nsILoadInfo::StoragePermissionState aHasStoragePermission
) {
188 return NS_ERROR_NOT_IMPLEMENTED
;
191 const Maybe
<RFPTarget
>& TRRLoadInfo::GetOverriddenFingerprintingSettings() {
192 return mOverriddenFingerprintingSettings
;
195 void TRRLoadInfo::SetOverriddenFingerprintingSettings(RFPTarget aTargets
) {}
198 TRRLoadInfo::GetIsMetaRefresh(bool* aResult
) {
199 return NS_ERROR_NOT_IMPLEMENTED
;
203 TRRLoadInfo::SetIsMetaRefresh(bool aResult
) { return NS_ERROR_NOT_IMPLEMENTED
; }
206 TRRLoadInfo::GetForceInheritPrincipal(bool* aInheritPrincipal
) {
207 return NS_ERROR_NOT_IMPLEMENTED
;
211 TRRLoadInfo::GetForceInheritPrincipalOverruleOwner(bool* aInheritPrincipal
) {
212 return NS_ERROR_NOT_IMPLEMENTED
;
216 TRRLoadInfo::GetLoadingSandboxed(bool* aLoadingSandboxed
) {
217 return NS_ERROR_NOT_IMPLEMENTED
;
221 TRRLoadInfo::GetAboutBlankInherits(bool* aResult
) {
222 return NS_ERROR_NOT_IMPLEMENTED
;
226 TRRLoadInfo::GetAllowChrome(bool* aResult
) { return NS_ERROR_NOT_IMPLEMENTED
; }
229 TRRLoadInfo::GetDisallowScript(bool* aResult
) {
230 return NS_ERROR_NOT_IMPLEMENTED
;
234 TRRLoadInfo::GetDontFollowRedirects(bool* aResult
) {
235 return NS_ERROR_NOT_IMPLEMENTED
;
239 TRRLoadInfo::GetLoadErrorPage(bool* aResult
) {
240 return NS_ERROR_NOT_IMPLEMENTED
;
244 TRRLoadInfo::GetIsFormSubmission(bool* aResult
) {
245 return NS_ERROR_NOT_IMPLEMENTED
;
249 TRRLoadInfo::SetIsFormSubmission(bool aValue
) {
250 return NS_ERROR_NOT_IMPLEMENTED
;
254 TRRLoadInfo::GetSendCSPViolationEvents(bool* aResult
) {
255 return NS_ERROR_NOT_IMPLEMENTED
;
259 TRRLoadInfo::SetSendCSPViolationEvents(bool aValue
) {
260 return NS_ERROR_NOT_IMPLEMENTED
;
264 TRRLoadInfo::GetExternalContentPolicyType(nsContentPolicyType
* aResult
) {
265 // We have to use nsContentPolicyType because ExtContentPolicyType is not
266 // visible from xpidl.
267 *aResult
= static_cast<nsContentPolicyType
>(
268 nsContentUtils::InternalContentPolicyTypeToExternal(
269 mInternalContentPolicyType
));
273 nsContentPolicyType
TRRLoadInfo::InternalContentPolicyType() {
274 return mInternalContentPolicyType
;
278 TRRLoadInfo::GetBlockAllMixedContent(bool* aResult
) {
279 return NS_ERROR_NOT_IMPLEMENTED
;
283 TRRLoadInfo::GetUpgradeInsecureRequests(bool* aResult
) {
284 return NS_ERROR_NOT_IMPLEMENTED
;
288 TRRLoadInfo::GetBrowserUpgradeInsecureRequests(bool* aResult
) {
289 return NS_ERROR_NOT_IMPLEMENTED
;
293 TRRLoadInfo::GetBrowserDidUpgradeInsecureRequests(bool* aResult
) {
294 return NS_ERROR_NOT_IMPLEMENTED
;
298 TRRLoadInfo::SetBrowserDidUpgradeInsecureRequests(
299 bool aBrowserDidUpgradeInsecureRequests
) {
300 return NS_ERROR_NOT_IMPLEMENTED
;
304 TRRLoadInfo::GetBrowserWouldUpgradeInsecureRequests(bool* aResult
) {
305 return NS_ERROR_NOT_IMPLEMENTED
;
309 TRRLoadInfo::SetForceAllowDataURI(bool aForceAllowDataURI
) {
310 return NS_ERROR_NOT_IMPLEMENTED
;
314 TRRLoadInfo::GetForceAllowDataURI(bool* aForceAllowDataURI
) {
315 return NS_ERROR_NOT_IMPLEMENTED
;
319 TRRLoadInfo::SetAllowInsecureRedirectToDataURI(
320 bool aAllowInsecureRedirectToDataURI
) {
321 return NS_ERROR_NOT_IMPLEMENTED
;
325 TRRLoadInfo::GetAllowInsecureRedirectToDataURI(
326 bool* aAllowInsecureRedirectToDataURI
) {
327 return NS_ERROR_NOT_IMPLEMENTED
;
331 TRRLoadInfo::SetSkipContentPolicyCheckForWebRequest(bool aSkip
) {
332 return NS_ERROR_NOT_IMPLEMENTED
;
336 TRRLoadInfo::GetSkipContentPolicyCheckForWebRequest(bool* aSkip
) {
337 return NS_ERROR_NOT_IMPLEMENTED
;
341 TRRLoadInfo::SetOriginalFrameSrcLoad(bool aOriginalFrameSrcLoad
) {
342 return NS_ERROR_NOT_IMPLEMENTED
;
346 TRRLoadInfo::GetOriginalFrameSrcLoad(bool* aOriginalFrameSrcLoad
) {
347 return NS_ERROR_NOT_IMPLEMENTED
;
351 TRRLoadInfo::GetForceInheritPrincipalDropped(bool* aResult
) {
352 return NS_ERROR_NOT_IMPLEMENTED
;
356 TRRLoadInfo::GetInnerWindowID(uint64_t* aResult
) {
357 return NS_ERROR_NOT_IMPLEMENTED
;
361 TRRLoadInfo::GetBrowsingContextID(uint64_t* aResult
) {
362 return NS_ERROR_NOT_IMPLEMENTED
;
366 TRRLoadInfo::GetWorkerAssociatedBrowsingContextID(uint64_t* aResult
) {
367 return NS_ERROR_NOT_IMPLEMENTED
;
371 TRRLoadInfo::SetWorkerAssociatedBrowsingContextID(uint64_t aResult
) {
372 return NS_ERROR_NOT_IMPLEMENTED
;
376 TRRLoadInfo::GetFrameBrowsingContextID(uint64_t* aResult
) {
377 return NS_ERROR_NOT_IMPLEMENTED
;
381 TRRLoadInfo::GetTargetBrowsingContextID(uint64_t* aResult
) {
382 return NS_ERROR_NOT_IMPLEMENTED
;
386 TRRLoadInfo::GetBrowsingContext(dom::BrowsingContext
** aResult
) {
387 return NS_ERROR_NOT_IMPLEMENTED
;
391 TRRLoadInfo::GetWorkerAssociatedBrowsingContext(
392 dom::BrowsingContext
** aResult
) {
393 return NS_ERROR_NOT_IMPLEMENTED
;
397 TRRLoadInfo::GetFrameBrowsingContext(dom::BrowsingContext
** aResult
) {
398 return NS_ERROR_NOT_IMPLEMENTED
;
402 TRRLoadInfo::GetTargetBrowsingContext(dom::BrowsingContext
** aResult
) {
403 return NS_ERROR_NOT_IMPLEMENTED
;
407 TRRLoadInfo::GetScriptableOriginAttributes(
408 JSContext
* aCx
, JS::MutableHandle
<JS::Value
> aOriginAttributes
) {
409 return NS_ERROR_NOT_IMPLEMENTED
;
413 TRRLoadInfo::ResetPrincipalToInheritToNullPrincipal() {
414 return NS_ERROR_NOT_IMPLEMENTED
;
418 TRRLoadInfo::SetScriptableOriginAttributes(
419 JSContext
* aCx
, JS::Handle
<JS::Value
> aOriginAttributes
) {
420 return NS_ERROR_NOT_IMPLEMENTED
;
423 nsresult
TRRLoadInfo::GetOriginAttributes(
424 mozilla::OriginAttributes
* aOriginAttributes
) {
425 NS_ENSURE_ARG(aOriginAttributes
);
426 *aOriginAttributes
= mOriginAttributes
;
430 nsresult
TRRLoadInfo::SetOriginAttributes(
431 const mozilla::OriginAttributes
& aOriginAttributes
) {
432 return NS_ERROR_NOT_IMPLEMENTED
;
436 TRRLoadInfo::SetInitialSecurityCheckDone(bool aInitialSecurityCheckDone
) {
437 return NS_ERROR_NOT_IMPLEMENTED
;
441 TRRLoadInfo::GetInitialSecurityCheckDone(bool* aResult
) {
442 return NS_ERROR_NOT_IMPLEMENTED
;
446 TRRLoadInfo::AppendRedirectHistoryEntry(nsIChannel
* aChannelToDeriveFrom
,
447 bool aIsInternalRedirect
) {
448 return NS_ERROR_NOT_IMPLEMENTED
;
452 TRRLoadInfo::GetRedirectChainIncludingInternalRedirects(
453 JSContext
* aCx
, JS::MutableHandle
<JS::Value
> aChain
) {
454 return NS_ERROR_NOT_IMPLEMENTED
;
457 const nsTArray
<nsCOMPtr
<nsIRedirectHistoryEntry
>>&
458 TRRLoadInfo::RedirectChainIncludingInternalRedirects() {
459 return mEmptyRedirectChain
;
463 TRRLoadInfo::GetRedirectChain(JSContext
* aCx
,
464 JS::MutableHandle
<JS::Value
> aChain
) {
465 return NS_ERROR_NOT_IMPLEMENTED
;
468 const nsTArray
<nsCOMPtr
<nsIRedirectHistoryEntry
>>&
469 TRRLoadInfo::RedirectChain() {
470 return mEmptyRedirectChain
;
473 const nsTArray
<nsCOMPtr
<nsIPrincipal
>>& TRRLoadInfo::AncestorPrincipals() {
474 return mEmptyPrincipals
;
477 const nsTArray
<uint64_t>& TRRLoadInfo::AncestorBrowsingContextIDs() {
478 return mEmptyBrowsingContextIDs
;
481 void TRRLoadInfo::SetCorsPreflightInfo(const nsTArray
<nsCString
>& aHeaders
,
482 bool aForcePreflight
) {}
484 const nsTArray
<nsCString
>& TRRLoadInfo::CorsUnsafeHeaders() {
485 return mCorsUnsafeHeaders
;
489 TRRLoadInfo::GetForcePreflight(bool* aForcePreflight
) {
490 return NS_ERROR_NOT_IMPLEMENTED
;
494 TRRLoadInfo::GetIsPreflight(bool* aIsPreflight
) {
495 return NS_ERROR_NOT_IMPLEMENTED
;
499 TRRLoadInfo::SetLoadTriggeredFromExternal(bool aLoadTriggeredFromExternal
) {
500 return NS_ERROR_NOT_IMPLEMENTED
;
504 TRRLoadInfo::GetLoadTriggeredFromExternal(bool* aLoadTriggeredFromExternal
) {
505 return NS_ERROR_NOT_IMPLEMENTED
;
509 TRRLoadInfo::GetServiceWorkerTaintingSynthesized(
510 bool* aServiceWorkerTaintingSynthesized
) {
511 return NS_ERROR_NOT_IMPLEMENTED
;
515 TRRLoadInfo::GetTainting(uint32_t* aTaintingOut
) {
516 return NS_ERROR_NOT_IMPLEMENTED
;
520 TRRLoadInfo::MaybeIncreaseTainting(uint32_t aTainting
) {
521 return NS_ERROR_NOT_IMPLEMENTED
;
524 void TRRLoadInfo::SynthesizeServiceWorkerTainting(LoadTainting aTainting
) {}
527 TRRLoadInfo::GetDocumentHasUserInteracted(bool* aDocumentHasUserInteracted
) {
528 return NS_ERROR_NOT_IMPLEMENTED
;
532 TRRLoadInfo::SetDocumentHasUserInteracted(bool aDocumentHasUserInteracted
) {
533 return NS_ERROR_NOT_IMPLEMENTED
;
537 TRRLoadInfo::GetAllowListFutureDocumentsCreatedFromThisRedirectChain(
539 return NS_ERROR_NOT_IMPLEMENTED
;
543 TRRLoadInfo::SetAllowListFutureDocumentsCreatedFromThisRedirectChain(
545 return NS_ERROR_NOT_IMPLEMENTED
;
549 TRRLoadInfo::GetNeedForCheckingAntiTrackingHeuristic(bool* aValue
) {
550 return NS_ERROR_NOT_IMPLEMENTED
;
554 TRRLoadInfo::SetNeedForCheckingAntiTrackingHeuristic(bool aValue
) {
555 return NS_ERROR_NOT_IMPLEMENTED
;
559 TRRLoadInfo::GetCspNonce(nsAString
& aCspNonce
) {
560 return NS_ERROR_NOT_IMPLEMENTED
;
564 TRRLoadInfo::SetCspNonce(const nsAString
& aCspNonce
) {
565 return NS_ERROR_NOT_IMPLEMENTED
;
569 TRRLoadInfo::GetIntegrityMetadata(nsAString
& aIntegrityMetadata
) {
570 return NS_ERROR_NOT_IMPLEMENTED
;
574 TRRLoadInfo::SetIntegrityMetadata(const nsAString
& aIntegrityMetadata
) {
575 return NS_ERROR_NOT_IMPLEMENTED
;
579 TRRLoadInfo::GetSkipContentSniffing(bool* aSkipContentSniffing
) {
580 return NS_ERROR_NOT_IMPLEMENTED
;
584 TRRLoadInfo::SetSkipContentSniffing(bool aSkipContentSniffing
) {
585 return NS_ERROR_NOT_IMPLEMENTED
;
589 TRRLoadInfo::GetIsTopLevelLoad(bool* aResult
) {
590 return NS_ERROR_NOT_IMPLEMENTED
;
594 TRRLoadInfo::GetIsFromProcessingFrameAttributes(
595 bool* aIsFromProcessingFrameAttributes
) {
596 return NS_ERROR_NOT_IMPLEMENTED
;
600 TRRLoadInfo::SetIsMediaRequest(bool aIsMediaRequest
) {
601 return NS_ERROR_NOT_IMPLEMENTED
;
605 TRRLoadInfo::GetIsMediaRequest(bool* aIsMediaRequest
) {
606 return NS_ERROR_NOT_IMPLEMENTED
;
610 TRRLoadInfo::SetIsMediaInitialRequest(bool aIsMediaInitialRequest
) {
611 return NS_ERROR_NOT_IMPLEMENTED
;
615 TRRLoadInfo::GetIsMediaInitialRequest(bool* aIsMediaInitialRequest
) {
616 return NS_ERROR_NOT_IMPLEMENTED
;
620 TRRLoadInfo::SetIsFromObjectOrEmbed(bool aIsFromObjectOrEmbed
) {
621 return NS_ERROR_NOT_IMPLEMENTED
;
625 TRRLoadInfo::GetIsFromObjectOrEmbed(bool* aIsFromObjectOrEmbed
) {
626 return NS_ERROR_NOT_IMPLEMENTED
;
630 TRRLoadInfo::GetShouldSkipCheckForBrokenURLOrZeroSized(
631 bool* aShouldSkipCheckForBrokenURLOrZeroSized
) {
632 return NS_ERROR_NOT_IMPLEMENTED
;
636 TRRLoadInfo::GetResultPrincipalURI(nsIURI
** aURI
) {
637 nsCOMPtr
<nsIURI
> uri
= mResultPrincipalURI
;
643 TRRLoadInfo::SetResultPrincipalURI(nsIURI
* aURI
) {
644 mResultPrincipalURI
= aURI
;
649 TRRLoadInfo::GetChannelCreationOriginalURI(nsIURI
** aURI
) {
650 return NS_ERROR_NOT_IMPLEMENTED
;
654 TRRLoadInfo::SetChannelCreationOriginalURI(nsIURI
* aURI
) {
655 return NS_ERROR_NOT_IMPLEMENTED
;
659 TRRLoadInfo::SetRequestBlockingReason(uint32_t aReason
) {
660 return NS_ERROR_NOT_IMPLEMENTED
;
663 TRRLoadInfo::GetRequestBlockingReason(uint32_t* aReason
) {
664 return NS_ERROR_NOT_IMPLEMENTED
;
667 void TRRLoadInfo::SetClientInfo(const ClientInfo
& aClientInfo
) {}
669 const Maybe
<ClientInfo
>& TRRLoadInfo::GetClientInfo() { return mClientInfo
; }
671 void TRRLoadInfo::GiveReservedClientSource(
672 UniquePtr
<ClientSource
>&& aClientSource
) {}
674 UniquePtr
<ClientSource
> TRRLoadInfo::TakeReservedClientSource() {
678 void TRRLoadInfo::SetReservedClientInfo(const ClientInfo
& aClientInfo
) {}
680 void TRRLoadInfo::OverrideReservedClientInfoInParent(
681 const ClientInfo
& aClientInfo
) {}
683 const Maybe
<ClientInfo
>& TRRLoadInfo::GetReservedClientInfo() {
684 return mReservedClientInfo
;
687 void TRRLoadInfo::SetInitialClientInfo(const ClientInfo
& aClientInfo
) {}
689 const Maybe
<ClientInfo
>& TRRLoadInfo::GetInitialClientInfo() {
690 return mInitialClientInfo
;
693 void TRRLoadInfo::SetController(const ServiceWorkerDescriptor
& aServiceWorker
) {
696 void TRRLoadInfo::ClearController() {}
698 const Maybe
<ServiceWorkerDescriptor
>& TRRLoadInfo::GetController() {
702 void TRRLoadInfo::SetPerformanceStorage(
703 PerformanceStorage
* aPerformanceStorage
) {}
705 PerformanceStorage
* TRRLoadInfo::GetPerformanceStorage() { return nullptr; }
708 TRRLoadInfo::GetCspEventListener(nsICSPEventListener
** aCSPEventListener
) {
709 return NS_ERROR_NOT_IMPLEMENTED
;
713 TRRLoadInfo::SetCspEventListener(nsICSPEventListener
* aCSPEventListener
) {
714 return NS_ERROR_NOT_IMPLEMENTED
;
717 already_AddRefed
<nsIContentSecurityPolicy
> TRRLoadInfo::GetCsp() {
721 already_AddRefed
<nsIContentSecurityPolicy
> TRRLoadInfo::GetPreloadCsp() {
725 already_AddRefed
<nsIContentSecurityPolicy
> TRRLoadInfo::GetCspToInherit() {
729 Maybe
<FeaturePolicyInfo
> TRRLoadInfo::GetContainerFeaturePolicyInfo() {
733 void TRRLoadInfo::SetContainerFeaturePolicyInfo(
734 const FeaturePolicyInfo
& aContainerFeaturePolicyInfo
) {}
737 TRRLoadInfo::GetHttpsOnlyStatus(uint32_t* aHttpsOnlyStatus
) {
738 return NS_ERROR_NOT_IMPLEMENTED
;
742 TRRLoadInfo::SetHttpsOnlyStatus(uint32_t aHttpsOnlyStatus
) {
743 return NS_ERROR_NOT_IMPLEMENTED
;
747 TRRLoadInfo::GetHstsStatus(bool* aHstsStatus
) {
748 return NS_ERROR_NOT_IMPLEMENTED
;
752 TRRLoadInfo::SetHstsStatus(bool aHstsStatus
) {
753 return NS_ERROR_NOT_IMPLEMENTED
;
757 TRRLoadInfo::GetHasValidUserGestureActivation(
758 bool* aHasValidUserGestureActivation
) {
759 return NS_ERROR_NOT_IMPLEMENTED
;
763 TRRLoadInfo::SetHasValidUserGestureActivation(
764 bool aHasValidUserGestureActivation
) {
765 return NS_ERROR_NOT_IMPLEMENTED
;
769 TRRLoadInfo::GetInternalContentPolicyType(nsContentPolicyType
* aResult
) {
770 *aResult
= mInternalContentPolicyType
;
775 TRRLoadInfo::GetAllowDeprecatedSystemRequests(
776 bool* aAllowDeprecatedSystemRequests
) {
777 return NS_ERROR_NOT_IMPLEMENTED
;
781 TRRLoadInfo::SetAllowDeprecatedSystemRequests(
782 bool aAllowDeprecatedSystemRequests
) {
783 return NS_ERROR_NOT_IMPLEMENTED
;
787 TRRLoadInfo::GetIsUserTriggeredSave(bool* aIsUserTriggeredSave
) {
788 return NS_ERROR_NOT_IMPLEMENTED
;
792 TRRLoadInfo::SetIsUserTriggeredSave(bool aIsUserTriggeredSave
) {
793 return NS_ERROR_NOT_IMPLEMENTED
;
797 TRRLoadInfo::GetIsInDevToolsContext(bool* aIsInDevToolsContext
) {
798 return NS_ERROR_NOT_IMPLEMENTED
;
802 TRRLoadInfo::SetIsInDevToolsContext(bool aIsInDevToolsContext
) {
803 return NS_ERROR_NOT_IMPLEMENTED
;
807 TRRLoadInfo::GetParserCreatedScript(bool* aParserCreatedScript
) {
808 return NS_ERROR_NOT_IMPLEMENTED
;
812 TRRLoadInfo::SetParserCreatedScript(bool aParserCreatedScript
) {
813 return NS_ERROR_NOT_IMPLEMENTED
;
817 TRRLoadInfo::GetLoadingEmbedderPolicy(
818 nsILoadInfo::CrossOriginEmbedderPolicy
* aOutPolicy
) {
819 return NS_ERROR_NOT_IMPLEMENTED
;
823 TRRLoadInfo::SetLoadingEmbedderPolicy(
824 nsILoadInfo::CrossOriginEmbedderPolicy aPolicy
) {
825 return NS_ERROR_NOT_IMPLEMENTED
;
829 TRRLoadInfo::GetIsOriginTrialCoepCredentiallessEnabledForTopLevel(
830 bool* aIsOriginTrialCoepCredentiallessEnabledForTopLevel
) {
831 return NS_ERROR_NOT_IMPLEMENTED
;
835 TRRLoadInfo::SetIsOriginTrialCoepCredentiallessEnabledForTopLevel(
836 bool aIsOriginTrialCoepCredentiallessEnabledForTopLevel
) {
837 return NS_ERROR_NOT_IMPLEMENTED
;
841 TRRLoadInfo::GetUnstrippedURI(nsIURI
** aURI
) {
842 return NS_ERROR_NOT_IMPLEMENTED
;
846 TRRLoadInfo::SetUnstrippedURI(nsIURI
* aURI
) { return NS_ERROR_NOT_IMPLEMENTED
; }
848 nsIInterceptionInfo
* TRRLoadInfo::InterceptionInfo() { return nullptr; }
849 void TRRLoadInfo::SetInterceptionInfo(nsIInterceptionInfo
* aPrincipla
) {}
852 TRRLoadInfo::GetHasInjectedCookieForCookieBannerHandling(
853 bool* aHasInjectedCookieForCookieBannerHandling
) {
854 return NS_ERROR_NOT_IMPLEMENTED
;
858 TRRLoadInfo::SetHasInjectedCookieForCookieBannerHandling(
859 bool aHasInjectedCookieForCookieBannerHandling
) {
860 return NS_ERROR_NOT_IMPLEMENTED
;
864 TRRLoadInfo::GetWasSchemelessInput(bool* aWasSchemelessInput
) {
865 return NS_ERROR_NOT_IMPLEMENTED
;
869 TRRLoadInfo::SetWasSchemelessInput(bool aWasSchemelessInput
) {
870 return NS_ERROR_NOT_IMPLEMENTED
;
874 TRRLoadInfo::GetHttpsUpgradeTelemetry(
875 nsILoadInfo::HTTPSUpgradeTelemetryType
* aOutHttpsTelemetry
) {
876 return NS_ERROR_NOT_IMPLEMENTED
;
880 TRRLoadInfo::SetHttpsUpgradeTelemetry(
881 nsILoadInfo::HTTPSUpgradeTelemetryType aHttpsTelemetry
) {
882 return NS_ERROR_NOT_IMPLEMENTED
;
886 } // namespace mozilla