Open Bug 1786370 Opened 3 years ago Updated 1 year ago

Support banner auto-clicking if the banner is inside a shadow DOM

Categories

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

enhancement

Tracking

()

People

(Reporter: timhuang, Unassigned)

References

(Blocks 1 open bug)

Details

The cookie banner auto clicking is relying on the querySelector() to detect and click the cookie banner. However, this won't work if the banner is inside a shadow dom.

We can use Element.openOrClosedShadowRoot() to get the shadow root and call querySelector() on the shadow root.

I found a German news site that uses a cookie banner inside shadow DOM: https://www.mopo.de/

Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.