brave-browser: Ads (not sponsored NTPs) do not work on the Wayland display server

Description

Notification ads do not work when running the Wayland display server, but work fine on XOrg.

Steps to Reproduce

  1. Start up a desktop environment such as GNOME on the Wayland display server
  2. Wait for an ad to appear, see none, check logs and see errors
  3. Relog and this time use the XOrg display server
  4. See ads

Actual result:

Ads do not show, and this error appears in the rewards logs: [Jun 08, 2021, 1:54:02.0 PM:ERROR:publisher.cc(763)] Publisher info not found

Expected result:

Ads show, and no error appears

Reproduces how often:

easy

Brave version (brave://version info)

Brave 1.26.54 Chromium: 91.0.4472.88 (Official Build) beta (64-bit)
Revision 109e9cd038b94a631aea7d40ee3d56c1278f2597-refs/branch-heads/4472@{#1385}
OS Linux

Version/Channel Information:

  • Can you reproduce this issue with the current release? Yes
  • Can you reproduce this issue with the beta channel? Yes
  • Can you reproduce this issue with the nightly channel Yes

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? N/A
  • Does the issue resolve itself when disabling Brave Rewards? N/A
  • Is the issue reproducible on the latest version of Chrome? N/A

Miscellaneous Information:

#16109 This is not a personal issue, as I have seen someone on Reddit with the same problem, and the issue has also persisted between distros and installations.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18

Most upvoted comments

During a screen-share with https://github.com/brave/brave-browser/issues/17159 I noticed that Wayland is not triggering idle events. @aseren any ideas?

I only test official packages.

Where do you test them? I suggest Ubuntu 21.04 or Fedora 34 which default to use Wayland. Should be the same also on Gnome 40 in openSUSE Tumbleweed.

I only test official packages (https://brave.com/linux/#unofficial-packages). right now as above we are testing custom ad notifications and will roll out to more users if the tests are successful. Thank you