Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 03264c0

Browse files
authored
Fix cookie banner not getting displayed properly (but only partially)
1 parent f953610 commit 03264c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/blink/renderer/core/layout/layout_object.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ LayoutObject* LayoutObject::CreateObject(Element* element,
379379
|| element->getAttribute(HTMLNames::idAttr).Contains("ad320x50")
380380
|| element->getAttribute(HTMLNames::classAttr) == "remove-ads"
381381
|| element->getAttribute(HTMLNames::classAttr) == "socialfooter"
382-
|| element->getAttribute(HTMLNames::idAttr).Contains("cookie")
382+
|| (element->getAttribute(HTMLNames::idAttr).Contains("cookie") && !element->getAttribute(HTMLNames::idAttr).Contains("cookie-banner"))
383383
|| element->getAttribute(HTMLNames::idAttr).Contains("share-bar")
384384
|| element->getAttribute(HTMLNames::idAttr).Contains("my_web_push_")
385385
|| element->getAttribute(HTMLNames::idAttr).Contains("floatLayer1")

0 commit comments

Comments
 (0)