-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Firefox popups not rendered on some multi-output setups #6147
Comments
I made this recording here to show some weirdness related to this. The laptop display is scale 2, top display scale 1. I have a third scale 1 display to the right. https://www.youtube.com/watch?v=63nUUXE6Qt0 If I position firefox very close to the bottom edge of the top display, the popup will display. There's also that weird thing on the bottom display once I move the floating FF window where a chunk of the ff window is rendered and flickers. I'm on master sway (1d62d6b) and wlroots (b89bcffe) |
Hm, this seems like a separate bug, I've seen this with other clients as well. Can you open a new bug report? |
Of course. |
This might be related https://bugzilla.mozilla.org/show_bug.cgi?id=1684197. |
Is the scale=1 monitor on the right in your setup? |
Yes. Top and top right scale 1, bottom scale 2
|
Does anyone have a reproduction on another compositor? |
I've just checked on Wayfire and the issue does not happen there. |
Neither does it happen in gnome 3.38. |
This doesn't seem to be a damage tracking related issue, because I can still reproduce it with |
Additional note: the coords in |
The menu is definitely open since you can click on it. See recording and keep an eye on the shield (ublock extension) icon: recording.mp4 |
@luispabon Yup I noticed this as well! Apparently they are just invisible. |
Also observing probably this with a <1 scaled display on the right and a >1 scaled display on the left and they are primarily showing up on the unscaled monitor, but I have observed it on one of the scaled ones as well, although subjectively it's rarer there. If that helps anything with debugging. |
I can confirm this issue with the menus not showing up. My setup:
Pop-ups do not show up on HDMI-A-1, but DO show up on DP-2. Toggling full screen on HDMI-A-1 after clicking the popup button makes it appear. |
I suspect this is a Firefox issue, but I wouldn't mind being proven wrong. We don't need additional confirmations of the bug. The only thing that would be interesting is if someone has a vastly different reproduction case - e.g., only 1 monitor, or using |
I have this same problem with this setup:
The select elements/extension menus work on eDP-1, but not on DP-1 or DP-2. GNOME 3.38 on wayland doesn't have this problem. I'm running Firefox 87.0 on sway 1.5.1 with wlroots 0.12.0 on Arch. |
Is this also related to firefox freezing on such a setup? I've had consistent problems with my mixed-scale setup, with hard freezes every few hours and "soft freezes" constantly (image updates only when giving input like moving the mouse, annoying when watching video for example). I then used my laptop standalone without an external monitor over the weekend, and these issues vanished. |
Sounds like a separate issue. |
@emersion seems likely but I've had those problems as well, especially when doing anything video related. Just adding that for completeness of information's sake, haven't been able to verify if this is specific to firefox under sway of just a firefox bug. |
This also affects drop downs in web pages. |
I'm experiencing flickering of especially drop downs in web pages using only 1 display:
Doesn't happen on Gnome 3.38. Firefox 87.0, Sway 1.5.1, wlroots 0.12.0 |
Flickering is unrelated to this issue and fixed in 1.6. |
I'm experiencing the same issue with the following configuration.
|
This comment has been minimized.
This comment has been minimized.
@nayaabkhan That's #6426. |
Ok, I think I've identified the issue I observed: if the context menu doesn't appear right away on right click, it is actually invisible, but becomes visible once the mouse hovers over it. So moving the mouse around when observing the problem makes the context menu pop up. Just to double check: This is unrelated to the issue here and is a separate bug, right? (The according log if anyone wants to double check: firefox-invisible-context-menu.txt) |
It looks like the popup is not rendered on Firefox side. Please open a new bug at bugzilla.mozilla.org |
Alright, thank you for taking a look, I'll make sure to open a bug over there. :) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
If you don't have 2 or more displays with different scales, you're in the wrong place. This bug is already fixed here #6147 (comment), just waiting for review and then it can be closed. If you have only one output and you have issues at >1 scale, that's #6426 and you only need the first patch. If you have anything else, or if you can still reproduce your popup issue on nightly after applying the gtk patches, report it to firefox. |
@cherti Did you already open a bug over at the Mozilla tracker? I'm on Firefox 93.0, scaling is 1.0 with just one display, and I still see this issue (probably started when I upgraded to Firefox 91.0). |
@tobiasjakobi I did, this one, but I cannot reproduce the issue anymore with nightly (or what was nightly at the time, should now be beta, I think), hence we closed this for now. I in fact cannot currently reproduce the issue on Firefox 93 already for quite some time now, so I consider the bug I ran into fixed for now. Yours might be a different one, and given that you use only one display and no scaling it wouldn't be too surprising if your bug is unrelated to the current discussions, as the common denominator of all reports in here was a scaling != 1 on one of the displays involved. |
I have a similar problem for the Media Permissions Popup in Firefox 93. The addons popup seem to work. In 1% of cases the Media Permissions popup renders correctly in 99% of the cases, it fails to render but the elements are clickable. I have these problems with dpi=1 on all displays but also with one display set to dpi=1.5. I opened https://bugzilla.mozilla.org/show_bug.cgi?id=1735137 to track this. |
@cherti Thanks, I also did some tests with nightly and beta builds in the past days. I think I've isolated the problem to a Firefox config variable which I modified: layout.css.devPixelsPerPx I've set it to 1.1 some time ago, since I find it easier on the eyes. The issue does not appear when resetting the value to it's default. Once setting it to 1.1 the issue appears in the beta builds, and also in nightly. Does not matter. Here's a screenshot illustrating the sandwich menu not showing up: I made two interesting observations here. First of all by rearranging the windows, I can get menu to render properly: So maybe FF does place the menu surface somewhere where it shouldn't? The second observation is that after opening the (non-showing) menu, switching to next window, switching back to the FF window, repeating, I can trigger FF exiting due to a Wayland error:
Needless to say, switching to the X11 backend (MOZ_ENABLE_WAYLAND=0) makes the issue go away. |
@tobiasjakobi can confirm, changed that option as well and I do see the issue as well. have you opened a bug report in the mozilla bug tracker? |
Yep, I had it at 1.125 and resetting this to its default value fixes it for me too. |
My gtk3 version is up-to-date on arch, but I still seem to be having this issue with |
|
Fair! I saw in gitlab that it was merged to If it's not released yet, that would explain it :) |
hmm, both PRs mentioned above are included into 20be04f7ac4a2081ce34768397873b7551e17c69 though /shrug |
It appears to be fixed in firefox nightly (96.0a1), but not in 94.0.2 (Unless it's some sort of config difference, but it's also broken in private windows.) I verified both are running wayland under window protocol in about:support. Edit: also fixed in developer edition (95.0b8) |
I also use arch and have the same |
Am I the only one who still has these problems? Sway 1.7 on arch linux + Firefox 96 when I join an audio session in discord the media popup is invisible most of the time. My only workaround so far is exiting and restarting sway. then I am not doing anything except starting firefox and going to discord. then the media popup asking for mic permissions is finally popping up and everything is working. As soon as I start doing something - switching workspaces, starting some apps - the popup fails to render. |
Do you have the latest gtk 3? I believe the fixes went in on 3.24.31 |
:| |
It could be https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3436, I guess. |
I definitely still have this issue, I'm completely unable to install addons under wayland at the moment. I don't scale outputs at all either. EDIT: Seems to have been fixed with wlroots 0.15.1. |
This issue is resolved. If you have an issue, even a similar one, make a new topic and describe it in detail. |
The text was updated successfully, but these errors were encountered: