Skip to content

Fix whitelist rules for top-level navigation - #787

Open
Laev wants to merge 1 commit into
tarampampam:masterfrom
Laev:fix/whitelist-top-level-navigation
Open

Fix whitelist rules for top-level navigation#787
Laev wants to merge 1 commit into
tarampampam:masterfrom
Laev:fix/whitelist-top-level-navigation

Conversation

@Laev

@Laev Laev commented Aug 26, 2026

Copy link
Copy Markdown

Summary

  • remove the initiatorDomains constraint from whitelist request rules
  • add regression coverage for top-level navigation and preserve blacklist exclusions

Why

A direct top-level navigation has no request initiator. Combining initiatorDomains and requestDomains prevented the whitelist response payload from reaching directly opened pages, so JavaScript UA protection did not run even though the popup reported a domain match.

Validation

  • vitest --run --logHeapUsage --dir ./src (912 tests passed)
  • tsc --noEmit
  • eslint ./src/**/*.{ts,tsx}
  • vite build

@Laev
Laev requested a review from tarampampam as a code owner August 26, 2026 04:07
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.

1 participant