mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-20 05:30:25 +02:00
2b34aeea5d
Signed-off-by: Leah Rowe <leah@libreboot.org>
43 lines
1.4 KiB
Diff
43 lines
1.4 KiB
Diff
From c34c0143ee4dd38902c9a8a3defaae42f74020c6 Mon Sep 17 00:00:00 2001
|
|
From: LibreWolf Developers <noreply@librewolf.net>
|
|
Date: Sun, 6 Sep 2026 10:09:31 +0100
|
|
Subject: [PATCH 08/52] delete-cookie-permission.patch
|
|
|
|
---
|
|
browser/components/ProfileDataUpgrader.sys.mjs | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
diff --git a/browser/components/ProfileDataUpgrader.sys.mjs b/browser/components/ProfileDataUpgrader.sys.mjs
|
|
index 6b0e2251f0eb..c859bf8db8e0 100644
|
|
--- a/browser/components/ProfileDataUpgrader.sys.mjs
|
|
+++ b/browser/components/ProfileDataUpgrader.sys.mjs
|
|
@@ -1030,6 +1030,9 @@ export let ProfileDataUpgrader = {
|
|
// Only migrate durable, user-set permissions. Anything that expires
|
|
// (session/time) or is re-applied from an enterprise policy on every
|
|
// startup (EXPIRE_POLICY) must not be persisted as a regular permission.
|
|
+
|
|
+ const toDelete = [];
|
|
+
|
|
Services.perms.getAllByTypes(["cookie"]).forEach(p => {
|
|
if (p.expireType != Services.perms.EXPIRE_NEVER) {
|
|
return;
|
|
@@ -1040,8 +1043,15 @@ export let ProfileDataUpgrader = {
|
|
"persist-data-on-shutdown",
|
|
Ci.nsICookiePermission.ACCESS_ALLOW
|
|
);
|
|
+ toDelete.push(p);
|
|
}
|
|
});
|
|
+
|
|
+ toDelete.forEach(p => {
|
|
+ Services.perms.removePermission(p);
|
|
+ });
|
|
+
|
|
+ Services.perms.removeOrphanedInteractionRecords();
|
|
}
|
|
|
|
if (
|
|
--
|
|
2.47.3
|
|
|