Closed Bug 1788907 Opened 4 years ago Closed 3 years ago

Support multiple domains per CookieBannerRule

Categories

(Core :: Privacy: Anti-Tracking, task, P2)

task

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: emz, Assigned: emz)

References

Details

Attachments

(4 external files)

For sites that are not covered by global rules (to be implemented), but still have multiple domains showing the same banner we currently have to create multiple duplicate rules, one per domain.

We can update the format of CookieBannerRule to accept an array of domains.

On import nsCookieBannerService#insertRule can simply set the same rule object for multiple domains in the hash map.

Example use cases (different domains, same banner):

  • StackExchange sites (StackOverflow etc)
  • Google search (country tlds)
Assignee: nobody → pbz
Status: NEW → ASSIGNED
Priority: -- → P2
Pushed by mlaza@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/8d25eaf53c7d Add support for multiple domains per nsICookieBannerRule. r=timhuang https://hg.mozilla.org/mozilla-central/rev/900cb877982a Avoid static_cast for conversion from nsICookie to net::Cookie. r=timhuang https://hg.mozilla.org/mozilla-central/rev/022ad7affbc9 Backwards compatibility for single-domain cookie banner rules. r=timhuang https://hg.mozilla.org/mozilla-central/rev/21cb6588a290 Update tests for nsICookieBannerRule domains field. r=timhuang
Blocks: 1804234
Regressions: 1804654
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: