Closed Bug 1783045 Opened 2 years ago Closed 2 years ago

Implement Cookie Banner Clicking

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: timhuang, Assigned: timhuang)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

The cookie banner clicking will be responsible for detecting if the cookie banner is present on the page and try to click either Reject All or Accept All button.

Depends on: 1783019

This patch adds four fields into the nsICookieBannerRule that are used
for the banner clicking. It also updates the CookieBannerListService.jsm
to also import the click rule.

This patch implements the nsIClickRule that represents the rule that we
need to do in the page in order to handle the cookie banner. We also
implments the nsICookieBannerService.getClickRuleForDoamin() that allows
the click rule to be acquired from the service for the given domain.

Depends on D154804

The patch implements a CookieBanner JSWindowActor. The CookieBanner
actor will be created when the DOMContentLoaded event files, and try to
detect the cookie banner and click the button to handle it.

Depends on D154805

Type: task → enhancement
Blocks: 1785872
Depends on: 1777293
Pushed by tihuang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d23dc4db85cc Part 1: Add banner clicking rule into the CookieBannerRule. r=pbz https://hg.mozilla.org/integration/autoland/rev/07cc853ae0ec Part 2: Implementing nsIClickRule and nsICookieBannerService.getClickRuleForDomain(). r=pbz https://hg.mozilla.org/integration/autoland/rev/73d747392a6c Part 3: Implementing CookieBanner JSWindowActor to handle the cookie banner. r=pbz https://hg.mozilla.org/integration/autoland/rev/858bd17dff03 Part 4: Add tests for the banner auto clicking. r=pbz
Flags: needinfo?(tihuang)
Pushed by tihuang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bc72e8315883 Part 1: Add banner clicking rule into the CookieBannerRule. r=pbz https://hg.mozilla.org/integration/autoland/rev/325242371824 Part 2: Implementing nsIClickRule and nsICookieBannerService.getClickRuleForDomain(). r=pbz https://hg.mozilla.org/integration/autoland/rev/99e43adb64de Part 3: Implementing CookieBanner JSWindowActor to handle the cookie banner. r=pbz https://hg.mozilla.org/integration/autoland/rev/41410adb6177 Part 4: Add tests for the banner auto clicking. r=pbz
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: