Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Some cleaners, namely QuotaCleaner, can opt in and treat things as deleted without actually removing files at shutdown. This function will trigger actual removal of them.
Delete data owned by or partitioned under a baseDomain (eTLD+1). For instance: mozilla.org. Deletes data across all origin attributes. For partitioned storage we clear both, data of the baseDomain in 1st-party and 3rd-party context. When handling user requests for clearing data using this method is preferred over deleteDataFromPrincipal, since origins may share information with their site (e.g. cookies) that are not deleted by principal.
Throws if base domain can't be computed from aDomainOrHost. Callers may fall back to clearing by principal or host.
the domain or host to be used. Will be converted to baseDomain if needed.
true if this request comes from a user interaction. This information is important because if true, it's probably better to remove more than less, for privacy reason. If false (e.g. Clear-Site-Data header), we don't want to delete more than what is strictly required.
List of flags. See below the accepted values.
this callback will be executed when the operation is completed.
Delete data owned by a host. For instance: mozilla.org. Data from any possible originAttributes will be deleted.
Use deleteDataFromBaseDomain instead.
the host to be used.
true if this request comes from a user interaction. This information is important because if true, it's probably better to remove more than less, for privacy reason. If false (e.g. Clear-Site-Data header), we don't want to delete more than what is strictly required.
List of flags. See below the accepted values.
this callback will be executed when the operation is completed.
Delete data owned by local files or other hostless schemes.
true if this request comes from a user interaction. This information is important because if true, it's probably better to remove more than less, for privacy reason. If false (e.g. Clear-Site-Data header), we don't want to delete more than what is strictly required.
List of flags. See below the accepted values. Note that not all flags will make sense (e.g. we can't clear certificates for local files). Nonsensical flags will be ignored.
this callback will be executed when the operation is completed.
Delete all data from an OriginAttributesPatternDictionary.
the originAttributes dictionary.
the optional callback will be executed when the operation is completed.
Delete data owned by a principal.
the nsIPrincipal to be used.
true if this request comes from a user interaction. This information is important because if true, it's probably better to remove more than less, for privacy reason. If false (e.g. Clear-Site-Data header), we don't want to delete more than what is strictly required.
List of flags. See below the accepted values.
ths callback will be executed when the operation is completed.
Delete all data in a time range. Limit excluded.
microseconds from the epoch
microseconds from the epoch
true if this request comes from a user interaction. This information is important because if true, it's probably better to remove more than less, for privacy reason. If false (e.g. Clear-Site-Data header), we don't want to delete more than what is strictly required.
List of flags. See below the accepted values.
ths callback will be executed when the operation is completed.
This is a helper function to clear storageAccessAPI permissions in a way that will not result in users getting logged out by cookie purging. To that end we only clear permissions for principals whose base domain does not have any storage associated with it.
The principals to be considered will need to be passed by the API consumer. It is recommended to use PrincipalsCollector.jsm for that.
principals to be excluded from clearing
microseconds from the epoch
the optional callback will be executed when the operation is completed.
Generated using TypeDoc
nsIClearDataService
Provides methods for cleaning data from a nsIPrincipal and/or from a time range.