Clean up partitionKey parsing and matching code
Categories
(Core :: Privacy: Anti-Tracking, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox91 | --- | fixed |
People
(Reporter: emz, Assigned: emz)
References
Details
Attachments
(3 external files)
Bug 1714065 adds OriginAttributes::ParsePartitionKey which can parse the string representation of the partition key into its atomic fields scheme, base domain and port. It also adds a pattern matcher that supports matching individual partitionKey attributes.
Since OriginAttributes will provide a way to parse the partitionKey, we can remove these following helper methods:
- StoragePrincipalHelper#GetBaseDomainFromPartitionKey
- ClearDataService#getBaseDomainFromPartitionKey
- Simplify: [ClearDataService#hasBaseDomain](https://searchfox.org/mozilla-central/rev/bf8d5de8528036c09590009720bc172882845b80/toolkit/components/cleardata/ClearDataService.jsm#67
- Bug 1711869 adds a local
partitionKeyparsing method
For the OriginAttributesPattern matching we already expose ChromeUtils#originAttributesMatchPattern to script callers. However, we will need to add an additional scriptable interface method for partitionKey parsing.
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 1•5 years ago
|
||
Depends on D116863
| Assignee | ||
Comment 2•5 years ago
|
||
Depends on D118724
| Assignee | ||
Comment 3•5 years ago
|
||
Depends on D118725
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/67ab2380add1
https://hg.mozilla.org/mozilla-central/rev/edc4528a66ff
https://hg.mozilla.org/mozilla-central/rev/e982bb4e3e84
Description
•