refactor(goto): drop heuristicPopupSearchTimeout override, use default#828
Conversation
Measured: the raised 500ms cap only engages on ~200k-element DOMs (a 100k-element page's heuristic scan is 69ms, under the 100ms default) and never gates request wall-clock, since autoconsent runs async. Reverting to the default 100 removes the theoretical worst case at zero detection cost. tier2 and enablePopupMutationObserver stay. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughThe ChangesAdblock Heuristic Timeout Removal
Estimated code review effort: 1 (Trivial) | ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Measured: the raised 500ms cap only engages on ~200k-element DOMs (a 100k-element page's heuristic scan is 69ms, under the 100ms default) and never gates request wall-clock, since autoconsent runs async. Reverting to the default 100 removes the theoretical worst case at zero detection cost. tier2 and enablePopupMutationObserver stay.
Note
Low Risk
Config-only tweak for CMP heuristics; only affects rare very large DOMs where scans might exceed 100ms, with no changes to auth, networking, or core goto flow.
Overview
Stops passing
heuristicPopupSearchTimeout: 500in the autoconsentinitRespconfig so DuckDuckGo autoconsent uses its built-in 100ms cap for heuristic DOM popup scans.heuristicMode: 'tier2'andenablePopupMutationObserverare unchanged. Unit tests and AVA snapshots were updated to match the slimmer config shape (no assertion on the removed key).Reviewed by Cursor Bugbot for commit 074b53d. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
Bug Fixes
Tests