-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Enable CosmeticFilteringJsPerformance by default #26861
Comments
Can you please clarify
from #26861 (comment)? Are there certain tests we should re-run, perhaps from a previous issue? Labelling as |
@LaurenWags As far as I concern we don't have a special test sites set. @pes10k @antonok-edm may be you know? |
Also I suggest the following test:
|
@atuchin-m so should the result from whether you have the custom rules in above case be the same? Not quite clear on what the expected result is for step 5 when we re-run the case from #26861 (comment) without the added rules. |
The added elements simulate some unwanted ads and the custom rules simulate adblock files rules. So if you have those custom rules them all the added element should be hidden. |
Verification passed on
Cosmetic filtering not enabled - PASS
Cosmetic filtering enabled - PASS
|
Verification
Cosmetic filtering not enabled -
|
ex1 | ex2 | ex3 | ex4 |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Cosmetic filtering enabled - PASSED
- continue from Case 1
- open brave://adblock and add following:
##.blocked-class-1 ##.blocked-class-2 ##.blocked-class-3
- refresh
example.com
site - Open dev tools
- run the script in step 3 from Enable CosmeticFilteringJsPerformance by default #26861 (comment)
- Wait till
Done! Scroll to the end to check if there is any visible new element
is shown in the console
Confirmed dynamically added blocks are blocked
ex1 | ex2 |
---|---|
![]() |
![]() |
Child frames + Speedometer2 score - PASSED
Verified as #26861 (comment)
- open brave://flags
- enable #brave-adblock-cosmetic-filtering-child-frames
- visit https://browserbench.org/Speedometer2.0/
- click
Start Test
Confirmed little variation in the score when BraveAdblockCosmeticFilteringChildFrames
flag enabled/disabled
enabled
ex1 | ex2 | ex3 |
---|---|---|
![]() |
![]() |
![]() |
disabled
- open brave://flags
- disable #brave-adblock-cosmetic-filtering-child-frames
- visit https://browserbench.org/Speedometer2.0/
- click
Start Test
ex1 | ex2 | ex3 |
---|---|---|
![]() |
![]() |
![]() |
Verified
|
Brave | 1.47.123 Chromium: 108.0.5359.99 (Official Build) beta (x86_64) |
---|---|
Revision | 410951fc34bb4b2cbf182231f9f779efaafaf682-refs/branch-heads/5359_71@{#9} |
OS | macOS Version 13.1 (Build 22C65) |
Cosmetic filtering not enabled - PASSED
- install
1.47.123
- launch Brave
- open
example.com
- open dev tools console
- run the script in step 3 from
https://github.com/brave/brave-browser/issues/26861#issuecomment-1335605869
- wait till
Done! Scroll to the end to check if there is any visible new element is shown in the console
appears
Confirmed dynamically added elements aren't blocked
example | example | example |
---|---|---|
![]() |
![]() |
![]() |
Cosmetic filtering enabled - PASSED
continue from Case 1
- open brave://adblock and add following:
##.blocked-class-1
##.blocked-class-2
##.blocked-class-3 - refresh
example.com
site - open dev tools
- run the script in step 3 from
https://github.com/brave/brave-browser/issues/26861#issuecomment-1335605869
- wait till
Done! Scroll to the end to check if there is any visible new element is shown in the console
message appears
Confirmed dynamically added elements are blocked
example | example |
---|---|
![]() |
![]() |
Child frames + Speedometer2 score - PASSED
- open
brave://flags
- enable
#brave-adblock-cosmetic-filtering-child-frames
- visit
https://browserbench.org/Speedometer2.0/
- click
Start Test
run 1 | run 2 | run 3 |
---|---|---|
![]() |
![]() |
![]() |
Disabled
- open
brave://flags
- disable
#brave-adblock-cosmetic-filtering-child-frames
- visit
https://browserbench.org/Speedometer2.0/
- click
Start Test
run 1 | run 2 | run 3 |
---|---|---|
![]() |
![]() |
![]() |
Verified on
Cosmetic filtering enabled
Cosmetic filtering NOT enabled
|
Verified on
Cosmetic filtering enabled
Cosmetic filtering NOT enabled
|
The feature was implemented in #25614
Cosmetic in child frames now is enabled by griffin in brave/brave-variations#466
Now the feature should be enabled with the recommended parameters.
Slack thread: https://bravesoftware.slack.com/archives/C01LKMP6X36/p1668103608663869
Steps to verify:
BraveAdblockCosmeticFilteringChildFrames
shouldn't affect the score on https://browserbench.org/Speedometer2.0/. Pplease take into account that local results will have some deviations.The text was updated successfully, but these errors were encountered: