Ad notifications sometimes presented to user when Ads toggle is off - follow up to 2972
See original GitHub issueDescription
Follow up to #2972
Found an additional scenario when Ads are presented to the user when Ads toggle is off in the UI.
If you toggle Rewards off, close and relaunch Brave, then toggle Rewards on, UI will show Ads as off, but in fact, Ads Service is running (you are able to see Ads Service messages in terminal if you’ve launched with the correct flags) and you will be presented with Ad notifications.
Seems as though there are two problems here:
- When Rewards are toggled back on after browser restart, Ads are showing as off in the UI.
- Ads Service isn’t respecting UI toggle which is set to off.
Steps to Reproduce
- Launch Brave with a clean profile - I also used these flags
--enable-logging=stderr --vmodule=brave_ads=3 --brave-ads-debug
- Enable Rewards, Ads are enabled by default as expected.
- Visit some sites - you will see AdsService messages in terminal as expected since Ads are on.
- Toggle Rewards off.
- Visit some sites, you will not see AdsService messages in terminal as expected since Ads are off.
- Toggle Rewards back on.
- Visit some sites, you will see AdsService messages in terminal as expected since Ads are on.
- Toggle Rewards off.
- Close Brave.
- Relaunch Brave (I used the same flags as before)
- Toggle Rewards on again.
Actual result:
Ads toggle is off in UI, but if you visit pages you will see AdsService messages in the terminal. After a bit of browsing you will also start to get Ad notifications.
Expected result:
Since Ads were on before Rewards was disabled, I’d expect toggling Rewards on to turn on Ads. However, if Ads toggle is off in the UI, then I should not be presented with Ad notifications.
Reproduces how often:
easily
Brave version (brave://version info)
Brave | 0.60.28 Chromium: 72.0.3626.96 (Official Build) beta(64-bit) |
---|---|
Revision | 84098ee7ef8622a9defc2ef043cd8930b617b10e-refs/branch-heads/3626@{#836} |
OS | Mac OS X |
Reproducible on current release: no, Ads are not available on 0.59.x
- Does it reproduce on brave-browser dev/beta builds? reproduced on beta 0.60.x
Website problems only:
- Does the issue resolve itself when disabling Brave Shields? n/a
- Is the issue reproducible on the latest version of Chrome? n/a
Additional Information
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top GitHub Comments
Verified passed with
/Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --enable-logging=stderr --vmodule=brave_ads=3 --log-level=0
, enabling Rewards, and browsing did not show anyAdService Event Log
messages in terminalAdService Event Log
messages in terminalAdService Event Log
messages in terminal@RyanJarv sounds good 👍 I’ll give this a check tomorrow. @LaurenWags mind giving this another recheck on
0.60.48
as well?