Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove build tooling for static declarativeNetRequest rulesets #2505

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

kzar
Copy link
Collaborator

@kzar kzar commented Apr 15, 2024

Anticipating hitting Chrome's limit of 5,000 dynamic
declarativeNetRequest rules[1], we begun work[2] to transition tracker
blocking to use a static declarativeNetRequest ruleset. That work got
put on hold, and since then Google have relaxed the dynamic rule limit
to around 30,000[3] (though note that the limits are even more complex
now, with a distinction between "safe" vs "unsafe" rules).

The new dynamic rule limit should be plenty for our needs in the
foreseeable future. Let's remove the code to generate static
declarativeNetRequest rulesets at build time.

1 - https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#property-MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES
2 - d3b3827
3 - https://issues.chromium.org/issues/40282671

Reviewer: @sammacbeth

Anticipating hitting Chrome's limit of 5,000 dynamic
declarativeNetRequest rules[1], we begun work[2] to transition tracker
blocking to use a static declarativeNetRequest ruleset. That work got
put on hold, and since then Google have relaxed the dynamic rule limit
to around 30,000[3] (though note that the limits are even more complex
now, with a distinction between "safe" vs "unsafe" rules).

The new dynamic rule limit should be plenty for our needs in the
foreseeable future. Let's remove the code to generate static
declarativeNetRequest rulesets at build time.

1 - https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#property-MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES
2 - duckduckgo@d3b3827
3 - https://issues.chromium.org/issues/40282671
@kzar kzar requested a review from sammacbeth April 15, 2024 13:28
@kzar kzar marked this pull request as ready for review April 15, 2024 13:38
@sammacbeth sammacbeth merged commit 2912e18 into duckduckgo:main Apr 16, 2024
24 of 25 checks 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.

None yet

2 participants