Skip to content

Rule update: ddg_mac_desktop (use) CPM magic report: www.mcgeeandco.com - #1492

Open
daxtheduck wants to merge 3 commits into
mainfrom
cursor/mcgeeandco-cookie-popup-1211
Open

Rule update: ddg_mac_desktop (use) CPM magic report: www.mcgeeandco.com#1492
daxtheduck wants to merge 3 commits into
mainfrom
cursor/mcgeeandco-cookie-popup-1211

Conversation

@daxtheduck

@daxtheduck daxtheduck commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Task/Issue URL: https://app.asana.com/1/137249556945/project/1203268166580279/task/1217183667628060?focus=true

Description:

Automated autoconsent rule update from CPM triage.

Steps to test this PR:

  • Review the agent test evidence linked from the Asana task.
  • Review the regional screenshots and results linked from the Asana task.

Note

Low Risk
Additive CMP rule and eval snippets only; no changes to core extension logic or security-sensitive paths.

Overview
Adds autoconsent coverage for Shopify’s Polaris customer-privacy widget (shopify-polaris), including detection, opt-in, opt-out, and verification.

The new rule targets #polaris-css-lockdown-container and .polaris-consent-widget, with prehide on the lockdown container. Opt-out runs custom evals that click Decline, one-click opt-out, or Okay inside the container’s shadow DOM, then optionally closes the one-click opt-out UI. Success is checked via the polaris_consent_settings cookie (adsPermitted and notOptedOut both false).

Playwright CMP tests are added for mcgeeandco.com and mightyvault.com.

Reviewed by Cursor Bugbot for commit c9db185. Bugbot is set up for automated code reviews on this repo. Configure here.

cursoragent and others added 2 commits August 13, 2026 11:45
Co-authored-by: Dax <daxtheduck@users.noreply.github.com>
Co-authored-by: Dax <daxtheduck@users.noreply.github.com>
@daxtheduck daxtheduck added category: rules Autoconsent rule additions, updates, and generated rule changes version: minor Increment the minor version when merged labels Aug 14, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 18a9586. Configure here.

Comment thread rules/autoconsent/shopify-polaris.json Outdated
Comment thread lib/eval-snippets.ts Outdated
@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

Comment thread lib/eval-snippets.ts Outdated
EVAL_SHOPIFY_TEST: () =>
document.cookie.includes('gdpr_cookie_consent=0') ||
(document.cookie.includes('_tracking_consent=') &&
EVAL_SHOPIFY_TEST: () => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The shopify eval should be reverted to it's original state, and we should create a new eval for polaris.

Comment thread tests/shopify-polaris.spec.ts Outdated
import generateCMPTests from '../playwright/runner';

generateCMPTests('shopify-polaris', ['https://www.mcgeeandco.com/products/calvert-brass-tissue-box-cover']);
generateCMPTests('shopify-polaris', ['https://mightyvault.com/'], { testOptOut: false, testSelfTest: false });

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we skipping opt-out testing? If the rule applies here but can't do opt-out, then we should fix the rule.

Co-authored-by: Dax <daxtheduck@users.noreply.github.com>
@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

@daxtheduck

Copy link
Copy Markdown
Collaborator Author

CI run finished. Artifacts ZIP for the review tool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: rules Autoconsent rule additions, updates, and generated rule changes version: minor Increment the minor version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants