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 "nsContentUtils.h"
10 #include "nsIRedirectHistoryEntry.h"
12 using namespace mozilla::dom
;
17 NS_IMPL_ISUPPORTS(TRRLoadInfo
, nsILoadInfo
)
19 TRRLoadInfo::TRRLoadInfo(nsIURI
* aResultPrincipalURI
,
20 nsContentPolicyType aContentPolicyType
)
21 : mResultPrincipalURI(aResultPrincipalURI
),
22 mInternalContentPolicyType(aContentPolicyType
) {}
24 already_AddRefed
<nsILoadInfo
> TRRLoadInfo::Clone() const {
25 nsCOMPtr
<nsILoadInfo
> loadInfo
=
26 new TRRLoadInfo(mResultPrincipalURI
, mInternalContentPolicyType
);
28 return loadInfo
.forget();
32 TRRLoadInfo::GetLoadingPrincipal(nsIPrincipal
** aLoadingPrincipal
) {
33 return NS_ERROR_NOT_IMPLEMENTED
;
36 nsIPrincipal
* TRRLoadInfo::VirtualGetLoadingPrincipal() { return nullptr; }
39 TRRLoadInfo::GetTriggeringPrincipal(nsIPrincipal
** aTriggeringPrincipal
) {
40 return NS_ERROR_NOT_IMPLEMENTED
;
43 nsIPrincipal
* TRRLoadInfo::TriggeringPrincipal() { return nullptr; }
46 TRRLoadInfo::GetPrincipalToInherit(nsIPrincipal
** aPrincipalToInherit
) {
47 return NS_ERROR_NOT_IMPLEMENTED
;
51 TRRLoadInfo::SetPrincipalToInherit(nsIPrincipal
* aPrincipalToInherit
) {
52 return NS_ERROR_NOT_IMPLEMENTED
;
55 nsIPrincipal
* TRRLoadInfo::PrincipalToInherit() { return nullptr; }
57 nsIPrincipal
* TRRLoadInfo::FindPrincipalToInherit(nsIChannel
* aChannel
) {
61 const nsID
& TRRLoadInfo::GetSandboxedNullPrincipalID() {
62 return mSandboxedNullPrincipalID
;
65 void TRRLoadInfo::ResetSandboxedNullPrincipalID() {}
67 nsIPrincipal
* TRRLoadInfo::GetTopLevelPrincipal() { return nullptr; }
70 TRRLoadInfo::GetTriggeringRemoteType(nsACString
& aTriggeringRemoteType
) {
71 return NS_ERROR_NOT_IMPLEMENTED
;
75 TRRLoadInfo::SetTriggeringRemoteType(const nsACString
& aTriggeringRemoteType
) {
76 return NS_ERROR_NOT_IMPLEMENTED
;
80 TRRLoadInfo::GetLoadingDocument(Document
** aResult
) {
81 return NS_ERROR_NOT_IMPLEMENTED
;
84 nsINode
* TRRLoadInfo::LoadingNode() { return nullptr; }
86 already_AddRefed
<nsISupports
> TRRLoadInfo::ContextForTopLevelLoad() {
90 already_AddRefed
<nsISupports
> TRRLoadInfo::GetLoadingContext() {
95 TRRLoadInfo::GetLoadingContextXPCOM(nsISupports
** aResult
) {
96 return NS_ERROR_NOT_IMPLEMENTED
;
100 TRRLoadInfo::GetSecurityFlags(nsSecurityFlags
* aResult
) {
101 return NS_ERROR_NOT_IMPLEMENTED
;
105 TRRLoadInfo::GetSandboxFlags(uint32_t* aResult
) {
106 return NS_ERROR_NOT_IMPLEMENTED
;
109 TRRLoadInfo::GetTriggeringSandboxFlags(uint32_t* aResult
) {
110 return NS_ERROR_NOT_IMPLEMENTED
;
113 TRRLoadInfo::SetTriggeringSandboxFlags(uint32_t aResult
) {
114 return NS_ERROR_NOT_IMPLEMENTED
;
118 TRRLoadInfo::GetTriggeringWindowId(uint64_t* aResult
) {
119 return NS_ERROR_NOT_IMPLEMENTED
;
122 TRRLoadInfo::SetTriggeringWindowId(uint64_t aResult
) {
123 return NS_ERROR_NOT_IMPLEMENTED
;
127 TRRLoadInfo::GetTriggeringStorageAccess(bool* aResult
) {
128 return NS_ERROR_NOT_IMPLEMENTED
;
131 TRRLoadInfo::SetTriggeringStorageAccess(bool aResult
) {
132 return NS_ERROR_NOT_IMPLEMENTED
;
136 TRRLoadInfo::GetSecurityMode(uint32_t* aFlags
) {
137 return NS_ERROR_NOT_IMPLEMENTED
;
141 TRRLoadInfo::GetIsInThirdPartyContext(bool* aIsInThirdPartyContext
) {
142 return NS_ERROR_NOT_IMPLEMENTED
;
146 TRRLoadInfo::SetIsInThirdPartyContext(bool aIsInThirdPartyContext
) {
147 return NS_ERROR_NOT_IMPLEMENTED
;
151 TRRLoadInfo::GetIsThirdPartyContextToTopWindow(
152 bool* aIsThirdPartyContextToTopWindow
) {
153 return NS_ERROR_NOT_IMPLEMENTED
;
157 TRRLoadInfo::SetIsThirdPartyContextToTopWindow(
158 bool aIsThirdPartyContextToTopWindow
) {
159 return NS_ERROR_NOT_IMPLEMENTED
;
163 TRRLoadInfo::GetCookiePolicy(uint32_t* aResult
) {
164 return NS_ERROR_NOT_IMPLEMENTED
;
168 TRRLoadInfo::GetCookieJarSettings(nsICookieJarSettings
** aCookieJarSettings
) {
169 return NS_ERROR_NOT_IMPLEMENTED
;
173 TRRLoadInfo::SetCookieJarSettings(nsICookieJarSettings
* aCookieJarSettings
) {
174 return NS_ERROR_NOT_IMPLEMENTED
;
178 TRRLoadInfo::GetStoragePermission(
179 nsILoadInfo::StoragePermissionState
* aHasStoragePermission
) {
180 return NS_ERROR_NOT_IMPLEMENTED
;
184 TRRLoadInfo::SetStoragePermission(
185 nsILoadInfo::StoragePermissionState aHasStoragePermission
) {
186 return NS_ERROR_NOT_IMPLEMENTED
;
189 const Maybe
<RFPTarget
>& TRRLoadInfo::GetOverriddenFingerprintingSettings() {
190 return mOverriddenFingerprintingSettings
;
193 void TRRLoadInfo::SetOverriddenFingerprintingSettings(RFPTarget aTargets
) {}
196 TRRLoadInfo::GetIsMetaRefresh(bool* aResult
) {
197 return NS_ERROR_NOT_IMPLEMENTED
;
201 TRRLoadInfo::SetIsMetaRefresh(bool aResult
) { return NS_ERROR_NOT_IMPLEMENTED
; }
204 TRRLoadInfo::GetForceInheritPrincipal(bool* aInheritPrincipal
) {
205 return NS_ERROR_NOT_IMPLEMENTED
;
209 TRRLoadInfo::GetForceInheritPrincipalOverruleOwner(bool* aInheritPrincipal
) {
210 return NS_ERROR_NOT_IMPLEMENTED
;
214 TRRLoadInfo::GetLoadingSandboxed(bool* aLoadingSandboxed
) {
215 return NS_ERROR_NOT_IMPLEMENTED
;
219 TRRLoadInfo::GetAboutBlankInherits(bool* aResult
) {
220 return NS_ERROR_NOT_IMPLEMENTED
;
224 TRRLoadInfo::GetAllowChrome(bool* aResult
) { return NS_ERROR_NOT_IMPLEMENTED
; }
227 TRRLoadInfo::GetDisallowScript(bool* aResult
) {
228 return NS_ERROR_NOT_IMPLEMENTED
;
232 TRRLoadInfo::GetDontFollowRedirects(bool* aResult
) {
233 return NS_ERROR_NOT_IMPLEMENTED
;
237 TRRLoadInfo::GetLoadErrorPage(bool* aResult
) {
238 return NS_ERROR_NOT_IMPLEMENTED
;
242 TRRLoadInfo::GetIsFormSubmission(bool* aResult
) {
243 return NS_ERROR_NOT_IMPLEMENTED
;
247 TRRLoadInfo::SetIsFormSubmission(bool aValue
) {
248 return NS_ERROR_NOT_IMPLEMENTED
;
252 TRRLoadInfo::GetSendCSPViolationEvents(bool* aResult
) {
253 return NS_ERROR_NOT_IMPLEMENTED
;
257 TRRLoadInfo::SetSendCSPViolationEvents(bool aValue
) {
258 return NS_ERROR_NOT_IMPLEMENTED
;
262 TRRLoadInfo::GetExternalContentPolicyType(nsContentPolicyType
* aResult
) {
263 // We have to use nsContentPolicyType because ExtContentPolicyType is not
264 // visible from xpidl.
265 *aResult
= static_cast<nsContentPolicyType
>(
266 nsContentUtils::InternalContentPolicyTypeToExternal(
267 mInternalContentPolicyType
));
271 nsContentPolicyType
TRRLoadInfo::InternalContentPolicyType() {
272 return mInternalContentPolicyType
;
276 TRRLoadInfo::GetBlockAllMixedContent(bool* aResult
) {
277 return NS_ERROR_NOT_IMPLEMENTED
;
281 TRRLoadInfo::GetUpgradeInsecureRequests(bool* aResult
) {
282 return NS_ERROR_NOT_IMPLEMENTED
;
286 TRRLoadInfo::GetBrowserUpgradeInsecureRequests(bool* aResult
) {
287 return NS_ERROR_NOT_IMPLEMENTED
;
291 TRRLoadInfo::GetBrowserDidUpgradeInsecureRequests(bool* aResult
) {
292 return NS_ERROR_NOT_IMPLEMENTED
;
296 TRRLoadInfo::SetBrowserDidUpgradeInsecureRequests(
297 bool aBrowserDidUpgradeInsecureRequests
) {
298 return NS_ERROR_NOT_IMPLEMENTED
;
302 TRRLoadInfo::GetBrowserWouldUpgradeInsecureRequests(bool* aResult
) {
303 return NS_ERROR_NOT_IMPLEMENTED
;
307 TRRLoadInfo::SetForceAllowDataURI(bool aForceAllowDataURI
) {
308 return NS_ERROR_NOT_IMPLEMENTED
;
312 TRRLoadInfo::GetForceAllowDataURI(bool* aForceAllowDataURI
) {
313 return NS_ERROR_NOT_IMPLEMENTED
;
317 TRRLoadInfo::SetAllowInsecureRedirectToDataURI(
318 bool aAllowInsecureRedirectToDataURI
) {
319 return NS_ERROR_NOT_IMPLEMENTED
;
323 TRRLoadInfo::GetAllowInsecureRedirectToDataURI(
324 bool* aAllowInsecureRedirectToDataURI
) {
325 return NS_ERROR_NOT_IMPLEMENTED
;
329 TRRLoadInfo::SetSkipContentPolicyCheckForWebRequest(bool aSkip
) {
330 return NS_ERROR_NOT_IMPLEMENTED
;
334 TRRLoadInfo::GetSkipContentPolicyCheckForWebRequest(bool* aSkip
) {
335 return NS_ERROR_NOT_IMPLEMENTED
;
339 TRRLoadInfo::SetOriginalFrameSrcLoad(bool aOriginalFrameSrcLoad
) {
340 return NS_ERROR_NOT_IMPLEMENTED
;
344 TRRLoadInfo::GetOriginalFrameSrcLoad(bool* aOriginalFrameSrcLoad
) {
345 return NS_ERROR_NOT_IMPLEMENTED
;
349 TRRLoadInfo::GetForceInheritPrincipalDropped(bool* aResult
) {
350 return NS_ERROR_NOT_IMPLEMENTED
;
354 TRRLoadInfo::GetInnerWindowID(uint64_t* aResult
) {
355 return NS_ERROR_NOT_IMPLEMENTED
;
359 TRRLoadInfo::GetBrowsingContextID(uint64_t* aResult
) {
360 return NS_ERROR_NOT_IMPLEMENTED
;
364 TRRLoadInfo::GetWorkerAssociatedBrowsingContextID(uint64_t* aResult
) {
365 return NS_ERROR_NOT_IMPLEMENTED
;
369 TRRLoadInfo::SetWorkerAssociatedBrowsingContextID(uint64_t aResult
) {
370 return NS_ERROR_NOT_IMPLEMENTED
;
374 TRRLoadInfo::GetFrameBrowsingContextID(uint64_t* aResult
) {
375 return NS_ERROR_NOT_IMPLEMENTED
;
379 TRRLoadInfo::GetTargetBrowsingContextID(uint64_t* aResult
) {
380 return NS_ERROR_NOT_IMPLEMENTED
;
384 TRRLoadInfo::GetBrowsingContext(dom::BrowsingContext
** aResult
) {
385 return NS_ERROR_NOT_IMPLEMENTED
;
389 TRRLoadInfo::GetWorkerAssociatedBrowsingContext(
390 dom::BrowsingContext
** aResult
) {
391 return NS_ERROR_NOT_IMPLEMENTED
;
395 TRRLoadInfo::GetFrameBrowsingContext(dom::BrowsingContext
** aResult
) {
396 return NS_ERROR_NOT_IMPLEMENTED
;
400 TRRLoadInfo::GetTargetBrowsingContext(dom::BrowsingContext
** aResult
) {
401 return NS_ERROR_NOT_IMPLEMENTED
;
405 TRRLoadInfo::GetScriptableOriginAttributes(
406 JSContext
* aCx
, JS::MutableHandle
<JS::Value
> aOriginAttributes
) {
407 return NS_ERROR_NOT_IMPLEMENTED
;
411 TRRLoadInfo::ResetPrincipalToInheritToNullPrincipal() {
412 return NS_ERROR_NOT_IMPLEMENTED
;
416 TRRLoadInfo::SetScriptableOriginAttributes(
417 JSContext
* aCx
, JS::Handle
<JS::Value
> aOriginAttributes
) {
418 return NS_ERROR_NOT_IMPLEMENTED
;
421 nsresult
TRRLoadInfo::GetOriginAttributes(
422 mozilla::OriginAttributes
* aOriginAttributes
) {
423 NS_ENSURE_ARG(aOriginAttributes
);
424 *aOriginAttributes
= mOriginAttributes
;
428 nsresult
TRRLoadInfo::SetOriginAttributes(
429 const mozilla::OriginAttributes
& aOriginAttributes
) {
430 return NS_ERROR_NOT_IMPLEMENTED
;
434 TRRLoadInfo::SetInitialSecurityCheckDone(bool aInitialSecurityCheckDone
) {
435 return NS_ERROR_NOT_IMPLEMENTED
;
439 TRRLoadInfo::GetInitialSecurityCheckDone(bool* aResult
) {
440 return NS_ERROR_NOT_IMPLEMENTED
;
444 TRRLoadInfo::AppendRedirectHistoryEntry(nsIChannel
* aChannelToDeriveFrom
,
445 bool aIsInternalRedirect
) {
446 return NS_ERROR_NOT_IMPLEMENTED
;
450 TRRLoadInfo::GetRedirectChainIncludingInternalRedirects(
451 JSContext
* aCx
, JS::MutableHandle
<JS::Value
> aChain
) {
452 return NS_ERROR_NOT_IMPLEMENTED
;
455 const nsTArray
<nsCOMPtr
<nsIRedirectHistoryEntry
>>&
456 TRRLoadInfo::RedirectChainIncludingInternalRedirects() {
457 return mEmptyRedirectChain
;
461 TRRLoadInfo::GetRedirectChain(JSContext
* aCx
,
462 JS::MutableHandle
<JS::Value
> aChain
) {
463 return NS_ERROR_NOT_IMPLEMENTED
;
466 const nsTArray
<nsCOMPtr
<nsIRedirectHistoryEntry
>>&
467 TRRLoadInfo::RedirectChain() {
468 return mEmptyRedirectChain
;
471 const nsTArray
<nsCOMPtr
<nsIPrincipal
>>& TRRLoadInfo::AncestorPrincipals() {
472 return mEmptyPrincipals
;
475 const nsTArray
<uint64_t>& TRRLoadInfo::AncestorBrowsingContextIDs() {
476 return mEmptyBrowsingContextIDs
;
479 void TRRLoadInfo::SetCorsPreflightInfo(const nsTArray
<nsCString
>& aHeaders
,
480 bool aForcePreflight
) {}
482 const nsTArray
<nsCString
>& TRRLoadInfo::CorsUnsafeHeaders() {
483 return mCorsUnsafeHeaders
;
487 TRRLoadInfo::GetForcePreflight(bool* aForcePreflight
) {
488 return NS_ERROR_NOT_IMPLEMENTED
;
492 TRRLoadInfo::GetIsPreflight(bool* aIsPreflight
) {
493 return NS_ERROR_NOT_IMPLEMENTED
;
497 TRRLoadInfo::SetLoadTriggeredFromExternal(bool aLoadTriggeredFromExternal
) {
498 return NS_ERROR_NOT_IMPLEMENTED
;
502 TRRLoadInfo::GetLoadTriggeredFromExternal(bool* aLoadTriggeredFromExternal
) {
503 return NS_ERROR_NOT_IMPLEMENTED
;
507 TRRLoadInfo::GetServiceWorkerTaintingSynthesized(
508 bool* aServiceWorkerTaintingSynthesized
) {
509 return NS_ERROR_NOT_IMPLEMENTED
;
513 TRRLoadInfo::GetTainting(uint32_t* aTaintingOut
) {
514 return NS_ERROR_NOT_IMPLEMENTED
;
518 TRRLoadInfo::MaybeIncreaseTainting(uint32_t aTainting
) {
519 return NS_ERROR_NOT_IMPLEMENTED
;
522 void TRRLoadInfo::SynthesizeServiceWorkerTainting(LoadTainting aTainting
) {}
525 TRRLoadInfo::GetDocumentHasUserInteracted(bool* aDocumentHasUserInteracted
) {
526 return NS_ERROR_NOT_IMPLEMENTED
;
530 TRRLoadInfo::SetDocumentHasUserInteracted(bool aDocumentHasUserInteracted
) {
531 return NS_ERROR_NOT_IMPLEMENTED
;
535 TRRLoadInfo::GetAllowListFutureDocumentsCreatedFromThisRedirectChain(
537 return NS_ERROR_NOT_IMPLEMENTED
;
541 TRRLoadInfo::SetAllowListFutureDocumentsCreatedFromThisRedirectChain(
543 return NS_ERROR_NOT_IMPLEMENTED
;
547 TRRLoadInfo::GetNeedForCheckingAntiTrackingHeuristic(bool* aValue
) {
548 return NS_ERROR_NOT_IMPLEMENTED
;
552 TRRLoadInfo::SetNeedForCheckingAntiTrackingHeuristic(bool aValue
) {
553 return NS_ERROR_NOT_IMPLEMENTED
;
557 TRRLoadInfo::GetCspNonce(nsAString
& aCspNonce
) {
558 return NS_ERROR_NOT_IMPLEMENTED
;
562 TRRLoadInfo::SetCspNonce(const nsAString
& aCspNonce
) {
563 return NS_ERROR_NOT_IMPLEMENTED
;
567 TRRLoadInfo::GetIntegrityMetadata(nsAString
& aIntegrityMetadata
) {
568 return NS_ERROR_NOT_IMPLEMENTED
;
572 TRRLoadInfo::SetIntegrityMetadata(const nsAString
& aIntegrityMetadata
) {
573 return NS_ERROR_NOT_IMPLEMENTED
;
577 TRRLoadInfo::GetSkipContentSniffing(bool* aSkipContentSniffing
) {
578 return NS_ERROR_NOT_IMPLEMENTED
;
582 TRRLoadInfo::SetSkipContentSniffing(bool aSkipContentSniffing
) {
583 return NS_ERROR_NOT_IMPLEMENTED
;
587 TRRLoadInfo::GetIsTopLevelLoad(bool* aResult
) {
588 return NS_ERROR_NOT_IMPLEMENTED
;
592 TRRLoadInfo::GetIsFromProcessingFrameAttributes(
593 bool* aIsFromProcessingFrameAttributes
) {
594 return NS_ERROR_NOT_IMPLEMENTED
;
598 TRRLoadInfo::SetIsMediaRequest(bool aIsMediaRequest
) {
599 return NS_ERROR_NOT_IMPLEMENTED
;
603 TRRLoadInfo::GetIsMediaRequest(bool* aIsMediaRequest
) {
604 return NS_ERROR_NOT_IMPLEMENTED
;
608 TRRLoadInfo::SetIsMediaInitialRequest(bool aIsMediaInitialRequest
) {
609 return NS_ERROR_NOT_IMPLEMENTED
;
613 TRRLoadInfo::GetIsMediaInitialRequest(bool* aIsMediaInitialRequest
) {
614 return NS_ERROR_NOT_IMPLEMENTED
;
618 TRRLoadInfo::SetIsFromObjectOrEmbed(bool aIsFromObjectOrEmbed
) {
619 return NS_ERROR_NOT_IMPLEMENTED
;
623 TRRLoadInfo::GetIsFromObjectOrEmbed(bool* aIsFromObjectOrEmbed
) {
624 return NS_ERROR_NOT_IMPLEMENTED
;
628 TRRLoadInfo::GetShouldSkipCheckForBrokenURLOrZeroSized(
629 bool* aShouldSkipCheckForBrokenURLOrZeroSized
) {
630 return NS_ERROR_NOT_IMPLEMENTED
;
634 TRRLoadInfo::GetResultPrincipalURI(nsIURI
** aURI
) {
635 nsCOMPtr
<nsIURI
> uri
= mResultPrincipalURI
;
641 TRRLoadInfo::SetResultPrincipalURI(nsIURI
* aURI
) {
642 mResultPrincipalURI
= aURI
;
647 TRRLoadInfo::GetChannelCreationOriginalURI(nsIURI
** aURI
) {
648 return NS_ERROR_NOT_IMPLEMENTED
;
652 TRRLoadInfo::SetChannelCreationOriginalURI(nsIURI
* aURI
) {
653 return NS_ERROR_NOT_IMPLEMENTED
;
657 TRRLoadInfo::SetRequestBlockingReason(uint32_t aReason
) {
658 return NS_ERROR_NOT_IMPLEMENTED
;
661 TRRLoadInfo::GetRequestBlockingReason(uint32_t* aReason
) {
662 return NS_ERROR_NOT_IMPLEMENTED
;
665 void TRRLoadInfo::SetClientInfo(const ClientInfo
& aClientInfo
) {}
667 const Maybe
<ClientInfo
>& TRRLoadInfo::GetClientInfo() { return mClientInfo
; }
669 void TRRLoadInfo::GiveReservedClientSource(
670 UniquePtr
<ClientSource
>&& aClientSource
) {}
672 UniquePtr
<ClientSource
> TRRLoadInfo::TakeReservedClientSource() {
676 void TRRLoadInfo::SetReservedClientInfo(const ClientInfo
& aClientInfo
) {}
678 void TRRLoadInfo::OverrideReservedClientInfoInParent(
679 const ClientInfo
& aClientInfo
) {}
681 const Maybe
<ClientInfo
>& TRRLoadInfo::GetReservedClientInfo() {
682 return mReservedClientInfo
;
685 void TRRLoadInfo::SetInitialClientInfo(const ClientInfo
& aClientInfo
) {}
687 const Maybe
<ClientInfo
>& TRRLoadInfo::GetInitialClientInfo() {
688 return mInitialClientInfo
;
691 void TRRLoadInfo::SetController(const ServiceWorkerDescriptor
& aServiceWorker
) {
694 void TRRLoadInfo::ClearController() {}
696 const Maybe
<ServiceWorkerDescriptor
>& TRRLoadInfo::GetController() {
700 void TRRLoadInfo::SetPerformanceStorage(
701 PerformanceStorage
* aPerformanceStorage
) {}
703 PerformanceStorage
* TRRLoadInfo::GetPerformanceStorage() { return nullptr; }
706 TRRLoadInfo::GetCspEventListener(nsICSPEventListener
** aCSPEventListener
) {
707 return NS_ERROR_NOT_IMPLEMENTED
;
711 TRRLoadInfo::SetCspEventListener(nsICSPEventListener
* aCSPEventListener
) {
712 return NS_ERROR_NOT_IMPLEMENTED
;
715 already_AddRefed
<nsIContentSecurityPolicy
> TRRLoadInfo::GetCsp() {
719 already_AddRefed
<nsIContentSecurityPolicy
> TRRLoadInfo::GetPreloadCsp() {
723 already_AddRefed
<nsIContentSecurityPolicy
> TRRLoadInfo::GetCspToInherit() {
728 TRRLoadInfo::GetHttpsOnlyStatus(uint32_t* aHttpsOnlyStatus
) {
729 return NS_ERROR_NOT_IMPLEMENTED
;
733 TRRLoadInfo::SetHttpsOnlyStatus(uint32_t aHttpsOnlyStatus
) {
734 return NS_ERROR_NOT_IMPLEMENTED
;
738 TRRLoadInfo::GetHstsStatus(bool* aHstsStatus
) {
739 return NS_ERROR_NOT_IMPLEMENTED
;
743 TRRLoadInfo::SetHstsStatus(bool aHstsStatus
) {
744 return NS_ERROR_NOT_IMPLEMENTED
;
748 TRRLoadInfo::GetHasValidUserGestureActivation(
749 bool* aHasValidUserGestureActivation
) {
750 return NS_ERROR_NOT_IMPLEMENTED
;
754 TRRLoadInfo::SetHasValidUserGestureActivation(
755 bool aHasValidUserGestureActivation
) {
756 return NS_ERROR_NOT_IMPLEMENTED
;
760 TRRLoadInfo::GetInternalContentPolicyType(nsContentPolicyType
* aResult
) {
761 *aResult
= mInternalContentPolicyType
;
766 TRRLoadInfo::GetAllowDeprecatedSystemRequests(
767 bool* aAllowDeprecatedSystemRequests
) {
768 return NS_ERROR_NOT_IMPLEMENTED
;
772 TRRLoadInfo::SetAllowDeprecatedSystemRequests(
773 bool aAllowDeprecatedSystemRequests
) {
774 return NS_ERROR_NOT_IMPLEMENTED
;
778 TRRLoadInfo::GetIsUserTriggeredSave(bool* aIsUserTriggeredSave
) {
779 return NS_ERROR_NOT_IMPLEMENTED
;
783 TRRLoadInfo::SetIsUserTriggeredSave(bool aIsUserTriggeredSave
) {
784 return NS_ERROR_NOT_IMPLEMENTED
;
788 TRRLoadInfo::GetIsInDevToolsContext(bool* aIsInDevToolsContext
) {
789 return NS_ERROR_NOT_IMPLEMENTED
;
793 TRRLoadInfo::SetIsInDevToolsContext(bool aIsInDevToolsContext
) {
794 return NS_ERROR_NOT_IMPLEMENTED
;
798 TRRLoadInfo::GetParserCreatedScript(bool* aParserCreatedScript
) {
799 return NS_ERROR_NOT_IMPLEMENTED
;
803 TRRLoadInfo::SetParserCreatedScript(bool aParserCreatedScript
) {
804 return NS_ERROR_NOT_IMPLEMENTED
;
808 TRRLoadInfo::GetLoadingEmbedderPolicy(
809 nsILoadInfo::CrossOriginEmbedderPolicy
* aOutPolicy
) {
810 return NS_ERROR_NOT_IMPLEMENTED
;
814 TRRLoadInfo::SetLoadingEmbedderPolicy(
815 nsILoadInfo::CrossOriginEmbedderPolicy aPolicy
) {
816 return NS_ERROR_NOT_IMPLEMENTED
;
820 TRRLoadInfo::GetIsOriginTrialCoepCredentiallessEnabledForTopLevel(
821 bool* aIsOriginTrialCoepCredentiallessEnabledForTopLevel
) {
822 return NS_ERROR_NOT_IMPLEMENTED
;
826 TRRLoadInfo::SetIsOriginTrialCoepCredentiallessEnabledForTopLevel(
827 bool aIsOriginTrialCoepCredentiallessEnabledForTopLevel
) {
828 return NS_ERROR_NOT_IMPLEMENTED
;
832 TRRLoadInfo::GetUnstrippedURI(nsIURI
** aURI
) {
833 return NS_ERROR_NOT_IMPLEMENTED
;
837 TRRLoadInfo::SetUnstrippedURI(nsIURI
* aURI
) { return NS_ERROR_NOT_IMPLEMENTED
; }
839 nsIInterceptionInfo
* TRRLoadInfo::InterceptionInfo() { return nullptr; }
840 void TRRLoadInfo::SetInterceptionInfo(nsIInterceptionInfo
* aPrincipla
) {}
843 TRRLoadInfo::GetHasInjectedCookieForCookieBannerHandling(
844 bool* aHasInjectedCookieForCookieBannerHandling
) {
845 return NS_ERROR_NOT_IMPLEMENTED
;
849 TRRLoadInfo::SetHasInjectedCookieForCookieBannerHandling(
850 bool aHasInjectedCookieForCookieBannerHandling
) {
851 return NS_ERROR_NOT_IMPLEMENTED
;
855 TRRLoadInfo::GetWasSchemelessInput(bool* aWasSchemelessInput
) {
856 return NS_ERROR_NOT_IMPLEMENTED
;
860 TRRLoadInfo::SetWasSchemelessInput(bool aWasSchemelessInput
) {
861 return NS_ERROR_NOT_IMPLEMENTED
;
865 } // namespace mozilla