summaryrefslogtreecommitdiffstats
path: root/toolkit/components/cleardata/nsIClearDataService.idl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
commitdef92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch)
tree2ef34b9ad8bb9a9220e05d60352558b15f513894 /toolkit/components/cleardata/nsIClearDataService.idl
parentAdding debian version 125.0.3-1. (diff)
downloadfirefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz
firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/cleardata/nsIClearDataService.idl')
-rw-r--r--toolkit/components/cleardata/nsIClearDataService.idl28
1 files changed, 23 insertions, 5 deletions
diff --git a/toolkit/components/cleardata/nsIClearDataService.idl b/toolkit/components/cleardata/nsIClearDataService.idl
index ea17059bbe..babbc8f05b 100644
--- a/toolkit/components/cleardata/nsIClearDataService.idl
+++ b/toolkit/components/cleardata/nsIClearDataService.idl
@@ -31,7 +31,7 @@ interface nsIClearDataService : nsISupports
* @param aCallback this callback will be executed when the operation is
* completed.
*/
- void deleteDataFromLocalFiles(in bool aIsUserRequest,
+ void deleteDataFromLocalFiles(in boolean aIsUserRequest,
in uint32_t aFlags,
in nsIClearDataCallback aCallback);
@@ -50,7 +50,7 @@ interface nsIClearDataService : nsISupports
* @deprecated Use deleteDataFromBaseDomain instead.
*/
void deleteDataFromHost(in AUTF8String aHost,
- in bool aIsUserRequest,
+ in boolean aIsUserRequest,
in uint32_t aFlags,
in nsIClearDataCallback aCallback);
@@ -76,7 +76,7 @@ interface nsIClearDataService : nsISupports
* may fall back to clearing by principal or host.
*/
void deleteDataFromBaseDomain(in AUTF8String aDomainOrHost,
- in bool aIsUserRequest,
+ in boolean aIsUserRequest,
in uint32_t aFlags,
in nsIClearDataCallback aCallback);
@@ -93,7 +93,7 @@ interface nsIClearDataService : nsISupports
* completed.
*/
void deleteDataFromPrincipal(in nsIPrincipal aPrincipal,
- in bool aIsUserRequest,
+ in boolean aIsUserRequest,
in uint32_t aFlags,
in nsIClearDataCallback aCallback);
@@ -111,7 +111,7 @@ interface nsIClearDataService : nsISupports
* completed.
*/
void deleteDataInTimeRange(in PRTime aFrom, in PRTime aTo,
- in bool aIsUserRequest,
+ in boolean aIsUserRequest,
in uint32_t aFlags,
in nsIClearDataCallback aCallback);
@@ -308,6 +308,11 @@ interface nsIClearDataService : nsISupports
const uint32_t CLEAR_BOUNCE_TRACKING_PROTECTION_STATE = 1 << 28;
/**
+ * Clear permissions of type "persistent-storage" and "storage-access"
+ */
+ const uint32_t CLEAR_STORAGE_PERMISSIONS = 1 << 29;
+
+ /**
* Use this value to delete all the data.
*/
const uint32_t CLEAR_ALL = 0xFFFFFFFF;
@@ -340,6 +345,19 @@ interface nsIClearDataService : nsISupports
CLEAR_CREDENTIAL_MANAGER_STATE | CLEAR_COOKIE_BANNER_EXCEPTION |
CLEAR_COOKIE_BANNER_EXECUTED_RECORD | CLEAR_FINGERPRINTING_PROTECTION_STATE |
CLEAR_BOUNCE_TRACKING_PROTECTION_STATE;
+
+ /**
+ * Helper flag for clearing cookies and site data.
+ * This flag groups state that we consider site data
+ * from the user perspective. If you implement UI that
+ * offers site data clearing this is almost always what you want.
+ * If you need more granular control please use more specific
+ * flags like CLEAR_COOKIES and CLEAR_DOM_STORAGES.
+ */
+ const uint32_t CLEAR_COOKIES_AND_SITE_DATA =
+ CLEAR_COOKIES | CLEAR_COOKIE_BANNER_EXECUTED_RECORD | CLEAR_DOM_STORAGES | CLEAR_HSTS |
+ CLEAR_EME | CLEAR_AUTH_TOKENS | CLEAR_AUTH_CACHE | CLEAR_FINGERPRINTING_PROTECTION_STATE |
+ CLEAR_BOUNCE_TRACKING_PROTECTION_STATE | CLEAR_STORAGE_PERMISSIONS;
};
/**