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:
sonakshi 2020-03-25 13:04:35 +00:00
Родитель 16996a4499
Коммит d0bf0d67e0
3 изменённых файлов: 16 добавлений и 2 удалений

Просмотреть файл

@ -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