Closed Bug 1785870 Opened 3 years ago Closed 3 years ago

Add a test pref for importing cookie banner handling rules

Categories

(Core :: Privacy: Anti-Tracking, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
106 Branch
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:

  1. Update the code of CookieBannerListService.jsm and manually inject the rules into the JSON array.
  2. 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.

Depends on: 1785083
Assignee: nobody → pbz
Status: NEW → ASSIGNED
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fc0a0e5ec7dd Add a test pref for importing cookie banner handling rules. r=timhuang https://hg.mozilla.org/integration/autoland/rev/21eefb681b20 Validate cookie banner handling test rules. r=timhuang https://hg.mozilla.org/integration/autoland/rev/3091a8eea5f1 Tests for cookie banner rule test pref. r=timhuang
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: