brave-browser: Add button on `brave://adblock` page to force-update all adblock components

It would help adblock breakage remediation tremendously if users can force-update all adblock components by going to brave://adblock and pressing a button instead of having to go to brave://components and clicking each Update button manually.

The button could live under the Filter lists section:

Subsection Title: Update all filter lists Helper Text: Manually update all filter lists to latest version Button Text: Update lists

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 16 (3 by maintainers)

Most upvoted comments

Adding QA/Test-All-Platforms label to verify force-update to the adblock components

Verification PASSED using

Brave | 1.67.85 Chromium: 125.0.6422.60 (Official Build) beta (64-bit)
-- | --
Revision | d01060f5ec155e6eb64a335203663a29c0e5d81f
OS | Windows 11 Version 23H2 (Build 22631.3593)
Case 1: New install Update successful - PASSED
  1. Installed 1.67.85
  2. launched Brave
  3. opened brave://settings/shields/filters
  4. In a new window, open brave://components
  5. Make sure that you can see the content of both windows at the same time.
  6. Press the “Update lists” button on the settings page

Confirmed Lists updated button shown as expected

Confirmed below Adblock components are updated successfully with the statuses as expected when clicked Update lists button.

  • Brave Ad Block Updater - Component already up to date
  • Brave Ad Block First Party Filters - Component already up to date

Confirmed default lists EasyList Cookie and Fanboy's Mobile Notifications are updated

https://github.com/brave/brave-browser/assets/98358127/46446062-cc58-4014-9b06-d4598b5ce2c2

Confirmed user selected lists YouTube Mobile Distractions & uBlock Annoyances are updated

https://github.com/brave/brave-browser/assets/98358127/6d1a0865-53aa-494a-b838-50c5158a1c58

Case 2: New install Updated failed - PASSED
  1. Installed 1.67.85
  2. launched Brave
  3. opened brave://settings/shields/filters
  4. In a new window, open brave://components
  5. Make sure that you can see the content of both windows at the same time.
  6. Disconnect internet/WiFi
  7. Press the “Update lists” button on the settings page

Confirmed Updated failed - Retry button shown as expected

Confirmed Adblock components are shown Update error status as below when clicked Update lists button.

  • Brave Ad Block Updater - Update error
  • Brave Ad Block First Party Filters - - Update error``

https://github.com/brave/brave-browser/assets/98358127/af4deed7-4bca-4418-b297-96125c8d5d1c

Case 3: Upgrade - PASSED
  1. Installed 1.66.110
  2. launched Brave
  3. opened brave://settings/shields/filters
  4. verified Show full list button is shown
  5. opened brave://components in a new window and verified components are verified
  6. closed the browser and renamed the profile brave-browser-beta
  7. installed 1.67.87 relaunched Brave
  8. opened both windows and can see the content of both windows at the same time.
  9. confirmed Update Lists button is shown
  10. Press the “Update lists” button on the settings page
  11. Verify that AdBlock components are updated, as reflected on the brave://components page

Confirmed adblock components are updated as expected.

1.66.x 1.67.x
image image
image image
Case 4: Buttons UI (Light theme/Dark theme) - PASSED
Update Lists Lists Updated
image image
image image

Currently, it looks like the button update only default filter lists.

This should update all optional and default enabled filter lists. Is that not what you’re seeing? For custom filter lists, we could add a separate “Update all” button (since it’s in a separate section) but that’s a more advanced use-case.

Verification PASSED using

Brave | 1.67.100 Chromium: 125.0.6422.112 (Official Build) beta (x86_64)
-- | --
Revision | 34fcbb6655521b55468af6c63601a8e3c5d24cd2
OS | macOS Version 14.5 (Build 23F79)
Case 1: New install Update successful - PASSED
  1. installed 1.67.100
  2. launched Brave
  3. opened brave://settings/shields/filters
  4. in a new window, opened brave://components
  5. made sure I can see the content of both windows at the same time
  6. pressed the “Update lists” button on the settings page

Confirmed Lists updated button shown as expected

Confirmed below Adblock components are updated successfully with the statuses as expected when clicked Update lists button.

  • Brave Ad Block Updater - Component already up to date
  • Brave Ad Block First Party Filters - Component already up to date

Confirmed default lists EasyList Cookie and Fanboy's Mobile Notifications are updated

easylist-fanboy-updates

Confirmed user-selected lists Fanboy's Anti-chat Apps & YouTube Mobile Recommendations are updated

antichat-youtube-mobile

Case 2: New install Updated failed - PASSED
  1. installed 1.67.100
  2. launched Brave
  3. opened brave://settings/shields/filters
  4. In a new window, open brave://components
  5. make sure that you can see the content of both windows at the same time.
  6. disconnect internet/Wi-Fi
  7. press the “Update lists” button on the settings page

Confirmed Updated failed - Retry button shown as expected

Confirmed Adblock components are shown Update error status as below when clicked Update lists

button.

  • Brave Ad Block Updater - Update error
  • Brave Ad Block First Party Filters - Update error

offlineerrorupdating

Case 3: Upgrade - PASSED
  1. installed 1.66.115
  2. launched Brave
  3. opened brave://settings/shields/filters
  4. verified Show full list button is shown
  5. opened brave://components in a new window and verified components are verified
  6. closed the browser and renamed the profile brave-browser-beta
  7. installed 1.67.100
  8. relaunched Brave
  9. opened both windows and can see the content of both windows at the same time.
  10. confirmed Update Lists button is shown
  11. Press the “Update lists” button on the settings page
  12. Verify that AdBlock components are updated, as reflected on the brave://components page

Confirmed adblock components are updated as expected.

1.66.x 1.67.x (Update lists) 1.67.x (Lists updated)
Screenshot 2024-05-30 at 5 22 04 PM Screenshot 2024-05-30 at 5 22 58 PM Screenshot 2024-05-30 at 5 23 12 PM
Case 4: Buttons UI (Dark theme) - PASSED
Update Lists Lists Updated
Screenshot 2024-05-30 at 5 25 59 PM Screenshot 2024-05-30 at 5 26 32 PM