Add a test pref for importing cookie banner handling rules
Categories
(Core :: Privacy: Anti-Tracking, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox106 | --- | fixed |
People
(Reporter: emz, Assigned: emz)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
Currently in order test cookie banner rules there are two main options:
- Update the code of CookieBannerListService.jsm and manually inject the rules into the JSON array.
- After Bug 1785083, add the rules via the RemoteSettings dev-server webinterface and switch Firefox to consume the dev server via the remote settings devtools.
(1) requires significant effort and a local build of Firefox
(2) requires access to the remote settings dev-server, also there might be conflicts if multiple developers work with the same server instance.
I propose to add a new pref which contains a stringified version of a JSON array that includes additional test rules that the CookieBannerListService can import. The rules should be validated to be valid JSON, e.g. via handling exceptions for JSON.parse and additionally could be validated with JSON schema we're adding in Bug 1785083.
Having a pref would allow for easy testing, e.g. allowing contributors to build and test their rules before creating a pull request.
| Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
| Assignee | ||
Comment 2•3 years ago
|
||
Depends on D155896
| Assignee | ||
Comment 3•3 years ago
|
||
Depends on D155897
Comment 5•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/fc0a0e5ec7dd
https://hg.mozilla.org/mozilla-central/rev/21eefb681b20
https://hg.mozilla.org/mozilla-central/rev/3091a8eea5f1
Description
•