icecat: add release icecat-140.6.0-1gnu1 for aramo
This commit is contained in:
parent
92fef42cd6
commit
17ba0259bf
3382 changed files with 457689 additions and 569094 deletions
|
|
@ -236,6 +236,8 @@ bool IsSameSite(nsIChannel* aHTTPChannel) {
|
|||
|
||||
// Helper function to determine whether a request was triggered
|
||||
// by the end user in the context of SecFetch.
|
||||
// The more secure/closed state to return for this function is "false".
|
||||
// A user triggered action is less restricted because it is not cross-origin.
|
||||
bool IsUserTriggeredForSecFetchSite(nsIHttpChannel* aHTTPChannel) {
|
||||
/*
|
||||
* The goal is to distinguish between "webby" navigations that are controlled
|
||||
|
|
@ -247,8 +249,7 @@ bool IsUserTriggeredForSecFetchSite(nsIHttpChannel* aHTTPChannel) {
|
|||
ExtContentPolicyType contentType = loadInfo->GetExternalContentPolicyType();
|
||||
|
||||
// A request issued by the browser is always user initiated.
|
||||
if (loadInfo->TriggeringPrincipal()->IsSystemPrincipal() &&
|
||||
contentType == ExtContentPolicy::TYPE_OTHER) {
|
||||
if (loadInfo->TriggeringPrincipal()->IsSystemPrincipal()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -283,12 +284,12 @@ bool IsUserTriggeredForSecFetchSite(nsIHttpChannel* aHTTPChannel) {
|
|||
if (referrerInfo) {
|
||||
nsCOMPtr<nsIURI> originalReferrer;
|
||||
referrerInfo->GetOriginalReferrer(getter_AddRefs(originalReferrer));
|
||||
if (originalReferrer) {
|
||||
return false;
|
||||
if (!originalReferrer) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
void mozilla::dom::SecFetch::AddSecFetchDest(nsIHttpChannel* aHTTPChannel) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue