brave-browser icon indicating copy to clipboard operation
brave-browser copied to clipboard

Unable to use extensions menu on Wayland

Open ket0x4 opened this issue 2 years ago • 1 comments

Description

Extension menus looks broken with wayland (not xwayland)

Steps to Reproduce

  1. Enable Wayland (--enable-features=UseOzonePlatform --ozone-platform=wayland or go to brave://flags/#ozone-platform-hint and choose wayland)
  2. Relaunch Browser
  3. Try with any extension

Actual result:

image

Expected result:

image

Reproduces how often:

Easily reproduced

Brave version (brave://version info)

1.42.86 Chromium: 104.0.5112.81 (Resmi Derleme) unknown (64 bit)

Version/Channel Information:

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

Other Additional Information:

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

Miscellaneous Information:

OS: Fedora 36 Silverblue. Brave installed via flatpak

ket0x4 avatar Aug 06 '22 19:08 ket0x4

Facing the same issue.

1.42.86 Chromium: 104.0.5112.81 (Official Build) (64-bit)

OS: Arch Linux, kernel linux 5.18.15.arch1-2

muradbu avatar Aug 07 '22 15:08 muradbu

Flatpak issue. Works with snap and deb right now

acheong08 avatar Sep 04 '22 13:09 acheong08

@Caticer seems to be an upstream issue -https://bugs.chromium.org/p/chromium/issues/detail?id=1282790

I've had this issue for ages and it seems to be a few things that cause it. But having multiple monitors is definitely a common variable between reports.

Hoping this gets fixed at some point

EmptyVisual avatar Oct 09 '22 20:10 EmptyVisual

Do you have a workaround for this issue?

binarious avatar Dec 23 '22 22:12 binarious

Do you have a workaround for this issue?

Set Preferred Ozone platform to X11 in brave://flags/

acheong08 avatar Dec 24 '22 01:12 acheong08

Did not work.

imadethisfor1page avatar Dec 28 '22 06:12 imadethisfor1page

Does only happen in multi monitor setups for me when the secondary monitor is off. A workaround via a totally different issue (https://github.com/swaywm/sway/issues/4857): Make sure the primary monitor starts at 0. I'm doing this like so in sway:

output eDP-1 pos -1920 0 res 1920x1080
output HDMI-A-1 pos 0 0 res 3840x2160

binarious avatar Jan 29 '23 11:01 binarious

@binarious this workaround (move to position 0 the primary display) fixed my issues.

Before:

 hyprctl monitors                                                                                                       ✘ INT  11:30:27
Monitor DP-2 (ID 1):
	[email protected] at 3840x0
	description: LG Electronics LG HDR WFHD 0x00049A0C (DP-2 via HDMI)
	make: LG Electronics
	model: LG HDR WFHD
	serial: 0x00049A0C
	active workspace: 2 (2)
	reserved: 0 30 0 0
	scale: 1.00
	transform: 0
	focused: yes
	dpmsStatus: 1
	vrr: 0

After changing the position:

hyprctl monitors                                                                                                              11:31:02
Monitor DP-2 (ID 1):
	[email protected] at 0x0
	description: LG Electronics LG HDR WFHD 0x00049A0C (DP-2 via HDMI)
	make: LG Electronics
	model: LG HDR WFHD
	serial: 0x00049A0C
	active workspace: 2 (2)
	reserved: 0 30 0 0
	scale: 1.00
	transform: 0
	focused: yes
	dpmsStatus: 1
	vrr: 0

aryklein avatar Jun 01 '23 14:06 aryklein

I'm also seeing the issue. Version 1.56.20 Chromium: 115.0.5790.171 Ubuntu 22.04.3 LTS, 5.15.0-60-generic, using Wayland Triple monitor (built-in laptop screen + 2 monitors) I have found that the menus work on only one of my monitors - in my case monitor 3, which is not my primary monitor. It might be relevant that monitor 3 is the only one that's portrait?

Also, changing the preferred ozone platform to Wayland or X11 didn't change anything.

cmsolomon avatar Aug 08 '23 23:08 cmsolomon

@binarious this workaround (move to position 0 the primary display) fixed my issues.

Before:

 hyprctl monitors                                                                                                       ✘ INT  11:30:27
Monitor DP-2 (ID 1):
	[email protected] at 3840x0
	description: LG Electronics LG HDR WFHD 0x00049A0C (DP-2 via HDMI)
	make: LG Electronics
	model: LG HDR WFHD
	serial: 0x00049A0C
	active workspace: 2 (2)
	reserved: 0 30 0 0
	scale: 1.00
	transform: 0
	focused: yes
	dpmsStatus: 1
	vrr: 0

After changing the position:

hyprctl monitors                                                                                                              11:31:02
Monitor DP-2 (ID 1):
	[email protected] at 0x0
	description: LG Electronics LG HDR WFHD 0x00049A0C (DP-2 via HDMI)
	make: LG Electronics
	model: LG HDR WFHD
	serial: 0x00049A0C
	active workspace: 2 (2)
	reserved: 0 30 0 0
	scale: 1.00
	transform: 0
	focused: yes
	dpmsStatus: 1
	vrr: 0

I can't believe that actually works :smile:

Sadly, this isn't really an option for me with my current setup (2 is primary): image

codesalatdev avatar Aug 10 '23 07:08 codesalatdev

You can also change it for the moment with: hyprctl keyword monitor DP-2,preferred, 0x0, auto

m3tam3re avatar Aug 16 '23 04:08 m3tam3re

Setting position of output to 0 fixed my issue as well! Thank you @binarious https://github.com/brave/brave-browser/issues/24491#issuecomment-1407630986

:pray:

martisj avatar Nov 13 '23 15:11 martisj

This appears to have been fixed for me today for hyprland. (NixOS unstable)

Version 1.62.153 Chromium: 121.0.6167.85 (Official Build) (64-bit)

iynaix avatar Jan 31 '24 11:01 iynaix

Thanks for sharing you are now fixed, @iynaix! I'll go ahead and close this out. And huge thanks @binarious for providing a work-around!

bsclifton avatar Feb 05 '24 18:02 bsclifton