-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Rewards extension process needs to be terminated when disabled, Follow up to #1475 #3436
Comments
Because of this tiny icon Brave is a goner for me. |
Brave is getting a hard pass from me until this is resolved. Wasting resources on something that is claimed to "do nothing" is incredibly shady. |
Shouldn't disabling rewards also terminate the Bat Ledger Service? The rewards extension can be manually disabled for now with the command line argument --disable-brave-rewards-extension, but the Bat Ledger Service cannot be so easily disabled yet. |
I think a patch like this would work- but you'd need to restart the browser if you wanted to either stop the process now or re-enable rewards diff --git a/browser/extensions/brave_component_loader.cc b/browser/extensions/brave_component_loader.cc
index 11f0ab83a..19b499715 100644
--- a/browser/extensions/brave_component_loader.cc
+++ b/browser/extensions/brave_component_loader.cc
@@ -108,7 +108,8 @@ void BraveComponentLoader::AddDefaultComponentExtensions(
}
#if BUILDFLAG(BRAVE_REWARDS_ENABLED)
- if (!command_line.HasSwitch(switches::kDisableBraveRewardsExtension)) {
+ if (!profile_prefs_->GetBoolean(kHideBraveRewardsButton) &&
+ !command_line.HasSwitch(switches::kDisableBraveRewardsExtension)) {
base::FilePath brave_rewards_path(FILE_PATH_LITERAL(""));
brave_rewards_path =
brave_rewards_path.Append(FILE_PATH_LITERAL("brave_rewards")); |
@bsclifton I think @gabrielhug also want to prevent launching |
What is the current status of this issue? |
The problem is |
a non persistent background page is also better for resource usage when rewards is enabled |
Any updates on this? I'm losing ~200 MB to stuff I don't use. |
As a user with 4 gigs of RAM, those ~200MBs are really precious to me. |
I'm on Brave Nightly 0.73.26 and still see Brave Rewards and Bat Ledger Service eating memory in task manager of brave. I made sure that I disabled rewards in settings and restarted brave. |
@ilyaigpetrov looking at master: Doesn't seem there's been a version published (yet) which has this fix. You can either hang tight until a new one goes public (should happen tomorrow) or you can download the latest non-published Nightly here: |
Verified passed with
Test plan 2 (single profile) upgraded profile with BR already on/opt-ed in:
Verification passed on
Verified upgrade profile and multi profile Verification passed on
Test plan 1 - before clicking on rewards BAT icon, brave rewards extension is not loaded Test plan 1 - After clicking on rewards BAT icon, brave rewards extension is loaded
|
Hi guys, any updates on this. I am still facing the issue. |
Description
Based on #1475, it only hides the extension from UI but the background process continues to run which is waste of resources. When the extension is hidden from UI corresponding extension process needs to be terminated/killed off to conserve resources
Steps to Reproduce
Actual result:
Expected result:
Should terminate the process when extension is hidden from UI
Reproduces how often:
Easy
Brave version (brave://version info)
Reproducible on current release:
Yes
Website problems only:
Additional Information
The text was updated successfully, but these errors were encountered: