icecat: add release icecat-140.6.0-1gnu1 for ecne
This commit is contained in:
parent
618c9f4145
commit
7d0f5dab3b
3382 changed files with 457689 additions and 569094 deletions
|
|
@ -415,11 +415,7 @@ const CookieBannerExecutedRecordCleaner = {
|
|||
|
||||
// A cleaner for cleaning fingerprinting protection states.
|
||||
const FingerprintingProtectionStateCleaner = {
|
||||
async _maybeClearSiteSpecificZoom(
|
||||
deleteAll,
|
||||
aSchemelessSite,
|
||||
aOriginAttributes = {}
|
||||
) {
|
||||
async _maybeClearSiteSpecificZoom(aSchemelessSite, aOriginAttributes = {}) {
|
||||
if (
|
||||
!ChromeUtils.shouldResistFingerprinting("SiteSpecificZoom", null, true)
|
||||
) {
|
||||
|
|
@ -432,8 +428,24 @@ const FingerprintingProtectionStateCleaner = {
|
|||
const ZOOM_PREF_NAME = "browser.content.full-zoom";
|
||||
|
||||
await new Promise((aResolve, aReject) => {
|
||||
if (deleteAll) {
|
||||
cps2.removeByName(ZOOM_PREF_NAME, null, {
|
||||
aOriginAttributes =
|
||||
ChromeUtils.fillNonDefaultOriginAttributes(aOriginAttributes);
|
||||
|
||||
let loadContext;
|
||||
if (
|
||||
aOriginAttributes.privateBrowsingId ==
|
||||
Services.scriptSecurityManager.DEFAULT_PRIVATE_BROWSING_ID
|
||||
) {
|
||||
loadContext = Cu.createLoadContext();
|
||||
} else {
|
||||
loadContext = Cu.createPrivateLoadContext();
|
||||
}
|
||||
|
||||
cps2.removeBySubdomainAndName(
|
||||
aSchemelessSite,
|
||||
ZOOM_PREF_NAME,
|
||||
loadContext,
|
||||
{
|
||||
handleCompletion: aReason => {
|
||||
if (aReason === cps2.COMPLETE_ERROR) {
|
||||
aReject();
|
||||
|
|
@ -441,50 +453,19 @@ const FingerprintingProtectionStateCleaner = {
|
|||
aResolve();
|
||||
}
|
||||
},
|
||||
});
|
||||
} else {
|
||||
aOriginAttributes =
|
||||
ChromeUtils.fillNonDefaultOriginAttributes(aOriginAttributes);
|
||||
|
||||
let loadContext;
|
||||
if (
|
||||
aOriginAttributes.privateBrowsingId ==
|
||||
Services.scriptSecurityManager.DEFAULT_PRIVATE_BROWSING_ID
|
||||
) {
|
||||
loadContext = Cu.createLoadContext();
|
||||
} else {
|
||||
loadContext = Cu.createPrivateLoadContext();
|
||||
}
|
||||
|
||||
cps2.removeBySubdomainAndName(
|
||||
aSchemelessSite,
|
||||
ZOOM_PREF_NAME,
|
||||
loadContext,
|
||||
{
|
||||
handleCompletion: aReason => {
|
||||
if (aReason === cps2.COMPLETE_ERROR) {
|
||||
aReject();
|
||||
} else {
|
||||
aResolve();
|
||||
}
|
||||
},
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
});
|
||||
},
|
||||
|
||||
async deleteAll() {
|
||||
Services.rfp.cleanAllRandomKeys();
|
||||
|
||||
await this._maybeClearSiteSpecificZoom(true);
|
||||
},
|
||||
|
||||
async deleteByPrincipal(aPrincipal) {
|
||||
Services.rfp.cleanRandomKeyByPrincipal(aPrincipal);
|
||||
|
||||
await this._maybeClearSiteSpecificZoom(
|
||||
false,
|
||||
aPrincipal.host,
|
||||
aPrincipal.originAttributes
|
||||
);
|
||||
|
|
@ -497,7 +478,6 @@ const FingerprintingProtectionStateCleaner = {
|
|||
);
|
||||
|
||||
await this._maybeClearSiteSpecificZoom(
|
||||
false,
|
||||
aSchemelessSite,
|
||||
aOriginAttributesPattern
|
||||
);
|
||||
|
|
@ -509,11 +489,7 @@ const FingerprintingProtectionStateCleaner = {
|
|||
JSON.stringify(aOriginAttributesPattern)
|
||||
);
|
||||
|
||||
await this._maybeClearSiteSpecificZoom(
|
||||
false,
|
||||
aHost,
|
||||
aOriginAttributesPattern
|
||||
);
|
||||
await this._maybeClearSiteSpecificZoom(aHost, aOriginAttributesPattern);
|
||||
},
|
||||
|
||||
async deleteByOriginAttributes(aOriginAttributesString) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue