fix(consent-history): banner_provider als Fallback fürs CMP (#62)

Storage-Keys fehlen in Phase A (vor Consent) oft → provider blieb leer. Jetzt
fällt detect_consent_history auf den bereits aus dem Banner-DOM erkannten
banner_provider zurück → korrekter Anbieter + history_capable auch ohne
Storage-Eintrag.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-06-13 17:03:44 +02:00
parent 48709bc595
commit 6f0416a22d
2 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -280,7 +280,8 @@ async def run_consent_test(
# #62: Consent-Historie/Widerruf (Borlabs-Stil) erkennen.
try:
from services.consent_history import detect_consent_history
result.consent_history = await detect_consent_history(page_a)
result.consent_history = await detect_consent_history(
page_a, result.banner_provider)
except Exception as _che:
logger.warning("consent-history detection failed: %s", _che)