зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1608599 - Add preloaded status for requests in the Network panel r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D67764 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
16996a4499
Коммит
d0bf0d67e0
|
@ -1647,6 +1647,12 @@ LoadInfo::SetCspEventListener(nsICSPEventListener* aCSPEventListener) {
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
LoadInfo::GetInternalContentPolicyType(nsContentPolicyType* aResult) {
|
||||
*aResult = mInternalContentPolicyType;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
already_AddRefed<nsIContentSecurityPolicy> LoadInfo::GetCsp() {
|
||||
// Before querying the CSP from the client we have to check if the
|
||||
// triggeringPrincipal originates from an addon and potentially
|
||||
|
|
|
@ -596,5 +596,11 @@ TRRLoadInfo::SetHttpsOnlyNoUpgrade(bool aHttpsOnlyNoUpgrade) {
|
|||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
TRRLoadInfo::GetInternalContentPolicyType(nsContentPolicyType* aResult) {
|
||||
*aResult = mInternalContentPolicyType;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
} // namespace net
|
||||
} // namespace mozilla
|
||||
|
|
|
@ -557,8 +557,10 @@ interface nsILoadInfo : nsISupports
|
|||
* _INTERNAL_ values. Please use the contentPolicyType attribute above
|
||||
* for that purpose.
|
||||
*/
|
||||
[noscript, notxpcom]
|
||||
nsContentPolicyType internalContentPolicyType();
|
||||
[noscript, notxpcom, nostdcall, binaryname(InternalContentPolicyType)]
|
||||
nsContentPolicyType binaryInternalContentPolicyType();
|
||||
|
||||
readonly attribute nsContentPolicyType internalContentPolicyType;
|
||||
|
||||
/**
|
||||
* Returns true if document or any of the documents ancestors
|
||||
|
|
Загрузка…
Ссылка в новой задаче