Transparent context menu with minwaita theme
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: antheo.lerouzic, Assigned: emilio)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
jcristau
:
approval-mozilla-release+
|
Details | Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0
Steps to reproduce:
Open a context menu (right click) on firefox 90 or later with "gfx.webrender.compositor.force-enabled" on true
Actual results:
The menu is transparent, like in this picture : https://www.casimages.com/i/210716014609220532.png.html
Expected results:
The context menu should not been transparent.
Reporter | ||
Comment 1•3 years ago
|
||
The problem is still here on the actual nightly.
Here is a link of my about:support : https://pastebin.com/Z1mL80jx
Comment 2•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebRender' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 3•3 years ago
|
||
Thank you for filing and attaching the about:support!
IIRC, context menus are rendered with software WR. So the issue is either that the output of rendering contains alpha of full transparency, we we don't expect it, or that the alpha compositing mode on the surface (responsible for the context menu) is configured incorrectly, which is more likely what's happening.
Lee, is that reasoning sound? Pinging you since you are involved in the sw-wr.
Comment 4•3 years ago
|
||
Does the problem only happen if you use the force-enabled pref? Are you using X11, or are you using Wayland?
Comment 5•3 years ago
|
||
From the description and comment 1 this appears to happen with the experimental Wayland compositor backend.
antheo, you seem to have quite a few experimental features enabled. Could you try running with a fresh profile and only gfx.webrender.compositor.force-enabled
? And do I understand correctly that the issue only happens with gfx.webrender.compositor.force-enabled
?
Reporter | ||
Comment 6•3 years ago
|
||
Hi,
I use wayland, and the problem is still here with a fresh new profile, so it's not gfx.webrender.compositor.force-enabled related, sorry.
Thanks for your help!
Comment 7•3 years ago
|
||
Thanks, that's good to know. Do you maybe happen to use a non-standard gtk theme? I recall having seen similar bugs when people do that.
Reporter | ||
Comment 8•3 years ago
|
||
Yes, I was using a non-official theme!
It worked great in 89 though, do you think there is a chance that it will work in future version or do I have to change my theme?
Thanks a lot for your help
Comment 9•3 years ago
|
||
(In reply to antheo.lerouzic from comment #8)
Yes, I was using a non-official theme!
It worked great in 89 though, do you think there is a chance that it will work in future version or do I have to change my theme?
Thanks a lot for your help
Emilio, do you have an idea here?
Assignee | ||
Comment 10•3 years ago
|
||
I mean, a transparent context-menu is always a bug, so we should fix it, yeah.
Which gtk theme are you using?
Also, does it work on Nightly? This reminds me of bug 1709719, but it was fixed on time for 90 so...
Reporter | ||
Comment 11•3 years ago
|
||
I was using Minwaita, the bug was still here with nightly.
Thanks
Assignee | ||
Comment 12•3 years ago
|
||
Alright, will take a look, thanks!
To be clear with other gtk themes this is not an issue, is that right?
Reporter | ||
Comment 13•3 years ago
|
||
It's not an issue with White-sur theme, but maybe other gtk theme have the same problem.
Assignee | ||
Comment 14•3 years ago
|
||
This theme only styles menus with menu:backdrop (which always seems to
match for context menus).
Try that before giving up. Also, fall back to the window background if
that would ever fail (which seems better than just rendering
transparent).
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 15•3 years ago
|
||
Comment on attachment 9231873 [details]
Bug 1720874 - Try to find menupopup background with :backdrop pseudo-class. r=stransky
Beta/Release Uplift Approval Request
- User impact if declined: Transparent context menus with some GTK themes.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: Install Minwaita theme from https://github.com/godlyranchdressing/Minwaita. Right click anywhere.
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Simple fallback rather than ending up with a transparent color.
- String changes made/needed: none
Assignee | ||
Updated•3 years ago
|
Comment 16•3 years ago
|
||
Comment 17•3 years ago
|
||
I am running a GTK 2.0/3.0 theme under MATE on Arch, and I started noticing this as well with the 90.0 update. (The theme in question is called "Platinum" and is designed to emulate the look of classic Mac OS.) I was wondering if my theme got corrupted or something, but I stumbled across this bug report. I'm glad I did, because I was just looking at the resource files to figure out what happened.
Comment 18•3 years ago
|
||
bugherder |
Comment 19•3 years ago
|
||
Comment on attachment 9231873 [details]
Bug 1720874 - Try to find menupopup background with :backdrop pseudo-class. r=stransky
Looks low risk, approved for 91 beta 5, thanks.
Assignee | ||
Comment 20•3 years ago
|
||
Comment on attachment 9231873 [details]
Bug 1720874 - Try to find menupopup background with :backdrop pseudo-class. r=stransky
Beta/Release Uplift Approval Request
- User impact if declined: Transparent context menus with some gtk themes.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: see above
- List of other uplifts needed: none
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): More fallback colors.
- String changes made/needed: none
Assignee | ||
Comment 21•3 years ago
|
||
(If we do a dot-release, this patch might be worth pulling in)
Comment 22•3 years ago
|
||
bugherder uplift |
Updated•3 years ago
|
Comment 23•3 years ago
|
||
Comment on attachment 9231873 [details]
Bug 1720874 - Try to find menupopup background with :backdrop pseudo-class. r=stransky
approved for 90.0.2
Comment 24•3 years ago
|
||
bugherder uplift |
Comment 25•3 years ago
|
||
Reproduced with Fx 90.0 and Fx 91.0b4 on Ubuntu 18.04.
Verified fixed with Fx 92.0a1 (21-06-2021), Fx 91.0b5 and Fx 90.0.2 on Ubuntu 18.04.
Description
•