Skip to content

Fix badge and popup count synchronization - #11

Merged
alex-w-developer merged 1 commit into
mainfrom
codex/fix-badge-popup-count
Aug 7, 2026
Merged

Fix badge and popup count synchronization#11
alex-w-developer merged 1 commit into
mainfrom
codex/fix-badge-popup-count

Conversation

@alex-w-developer

Copy link
Copy Markdown
Owner

Summary

  • replace Chrome's unreadable automatic DNR badge with a production-safe extension-owned badge
  • mirror the popup's active metric: estimated blocks in normal mode and decoyed requests in Decoy Mode
  • synchronize badge state on navigation, report updates, and mode changes
  • document the counter behavior and add real-browser regression coverage

Root cause

Chrome displays the automatic declarativeNetRequest action count, but chrome.action.getBadgeText() returns only a placeholder unless the extension requests declarativeNetRequestFeedback. GetBlocked! intentionally forbids that debug-sensitive permission, so the popup could not recover the number shown on the badge.

Validation

  • npm run check
  • npm run test:browser — 17 passed
  • git diff --check

Closes #10

@alex-w-developer
alex-w-developer merged commit 6449435 into main Aug 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] : Extension badge count mismatch with extension popup details during keyword searches

1 participant