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

Fix maximum number of selectors in stylesheet limitation on Chrome #83

Merged

Conversation

remusao
Copy link
Collaborator

@remusao remusao commented Jan 8, 2019

Kudos to Zhonghao for first noticing this bug. Chrome currently will never allow more than 8192 selectors in CSS rules because of some implementation limitation (use of 13 bits in RuleData). See here for more details: https://crbug.com/804179

We now split selectors into multiple blocks to make sure we do not run into this issue.

@remusao remusao force-pushed the fix-maximum-selectors-chrome branch from fb8e6e4 to 788a732 Compare January 8, 2019 16:54
@zhonghao-cliqz zhonghao-cliqz merged commit 43cfbb9 into ghostery:master Jan 9, 2019
@remusao remusao mentioned this pull request Jan 9, 2019
@remusao remusao deleted the fix-maximum-selectors-chrome branch September 5, 2019 11:37
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