Closed
Bug 1268462
Opened 9 years ago
Closed 9 years ago
[gtk3] Not consistent submenu popup back ground color. And menu highlight is invisible
Categories
(Firefox :: Theme, defect)
Tracking
()
VERIFIED
FIXED
Firefox 50
People
(Reporter: alice0775, Assigned: Gijs)
References
Details
(Keywords: regression)
Attachments
(3 files)
1.30 MB,
image/png
|
Details | |
151.11 KB,
image/png
|
Details | |
58 bytes,
text/x-review-board-request
|
dao
:
review+
gchang
:
approval-mozilla-aurora+
gchang
:
approval-mozilla-beta+
|
Details |
Since Firefox46. Submenu color is broken on Ubuntu14.04 default theme.
See screenshot.
Assignee | ||
Updated•9 years ago
|
Blocks: gtk3
Summary: Not consistent submenu popup back ground color. And menu highlight is invisible → [gtk3] Not consistent submenu popup back ground color. And menu highlight is invisible
Comment 1•9 years ago
|
||
I think it's caused by mixed internal and system (gtk) menus in Firefox. The bookmarks, settings, download pop-ups are rendered by Firefox internal css colors but menus are rendered by gtk with system color. It think internal popups can't be mixed with system widgets.
As you can see even the first picture (with the same menu color) has a different sub-menu style. The sub-menu is shadowed and "behind" the firefox menu.
IMHO the fix would be to convert the submenu to Firefox internal one.
Comment 2•9 years ago
|
||
> different sub-menu style. The sub-menu is shadowed and "behind" the firefox
> menu.
Ehh, sorry, the shadowed system menu is in front of the Firefox one.
Comment 3•9 years ago
|
||
Recent regression, tracking.
Unlikely to be fixed in 46 though.
tracking-firefox46:
--- → +
tracking-firefox47:
--- → +
tracking-firefox48:
--- → +
tracking-firefox49:
--- → +
Reporter | ||
Comment 4•9 years ago
|
||
Comment hidden (obsolete) |
Comment 6•9 years ago
|
||
(In reply to Karl Tomlinson (ni?:karlt) from comment #5)
> Comment on attachment 8752622 [details]
> Light theme suchas "Radiance"
>
> This looks like it may be
bug 1272194, I mean.
Reporter | ||
Comment 7•9 years ago
|
||
(In reply to Karl Tomlinson (ni?:karlt) from comment #6)
> (In reply to Karl Tomlinson (ni?:karlt) from comment #5)
> > Comment on attachment 8752622 [details]
> > Light theme suchas "Radiance"
> >
> > This looks like it may be
>
> bug 1272194, I mean.
I can still reproduce.
Goodbye, Firefox.
https://hg.mozilla.org/mozilla-central/rev/3435dd7ad71fe9003bdeee18fd38d815e033beef
Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 ID:20160530071207
Whiteboard: [dupe me]
Comment 8•9 years ago
|
||
(In reply to Alice0775 White from comment #7)
> 3435dd7ad71fe9003bdeee18fd38d815e033beef
> Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0
> ID:20160530071207
Attachment 8752622 [details] is not reproducing for me with that build and Radiance.
Attachment 8746505 [details] is still reproducing with Ambiance.
Comment 9•9 years ago
|
||
If attachment 8746505 [details] is the remaining issue here, this sounds a lot like an existing/older (fixed?) bug with the mix of pseudo-menuitems in the <panel> being mixed with the actual <menu> submenus... I'm not sure I understand why it ever worked before?
Gijs, suggestions on what the fix here should be? Is this a front-end issue, or problem with how GTK3 menu styles are being picked up?
Flags: needinfo?(gijskruitbosch+bugs)
Updated•9 years ago
|
Comment 10•9 years ago
|
||
I think the behavior of gtk code is responsible for this issue. The implementation of the -moz-appearance rule is in GTK code in Firefox 45.0.2 is different from the latest release (46 and latter). Infact the Gtk is not only causing this issue, it is responsible for Bug 1275700 too. Probably we need to fix the Gtk behavior.
Updated•9 years ago
|
Flags: needinfo?(dolske)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(gijskruitbosch+bugs)
Assignee | ||
Comment 11•9 years ago
|
||
Karl, do you know why we render a different background for -moz-appearance: menupopup when comparing gtk2 with gtk3? I think the relevant code is here: https://dxr.mozilla.org/mozilla-central/source/widget/gtk/gtk2drawing.c#2545-2564 and here: https://dxr.mozilla.org/mozilla-central/source/widget/gtk/gtk3drawing.cpp#2296-2318 but I don't know enough about gtk to decipher that.
Flags: needinfo?(dolske) → needinfo?(karlt)
Comment 12•9 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #11)
> Karl, do you know why we render a different background for -moz-appearance:
> menupopup when comparing gtk2 with gtk3?
-moz-appearance:menupopup draws the background using the gtk theme in use on the system. GTK2 and GTK3 do not share the same interface with different themes, and so themes are written differently for GTK2 and GTK3. Although some GTK2 versions of themes may use similar colors to a corresponding GTK3 theme, attachment 8746505 [details] shows this is not the case for popup menus with the default themes on Ubuntu 14.04.
If using -moz-appearance:menupopup for the background, then I would recommend
using -moz-appearance:menuitem for the menu items.
However, it may be preferable to style the submenu consistently with the
doorhanger.
Flags: needinfo?(karlt)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(gijskruitbosch+bugs)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(gijskruitbosch+bugs)
Assignee | ||
Comment 13•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/58944/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/58944/
Attachment #8762006 -
Flags: review?(dao+bmo)
Updated•9 years ago
|
Attachment #8762006 -
Flags: review?(dao+bmo) → review+
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Comment 14•9 years ago
|
||
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/fx-team/rev/151500c01e44
match main popup appearance in bookmarks toolbar submenus, r=dao
Comment 15•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
Reporter | ||
Comment 16•9 years ago
|
||
I can confirm that the problem was fixed.
https://hg.mozilla.org/mozilla-central/rev/016e0f47e8ad66ba6eb11fe28958e3a69ef9e53d
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 ID:20160612030220
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 17•9 years ago
|
||
Comment on attachment 8762006 [details]
Bug 1268462 - match main popup appearance in bookmarks toolbar submenus,
Approval Request Comment
[Feature/regressing bug #]: switch to gtk3
[User impact if declined]: submenus in the bookmarks toolbar popup are unreadable under some gtk3 themes
[Describe test coverage new/current, TreeHerder]: nope, appearance problem only
[Risks and why]: relatively low, CSS only changes to the linux browser theme
[String/UUID change made/needed]: nope
Attachment #8762006 -
Flags: approval-mozilla-beta?
Attachment #8762006 -
Flags: approval-mozilla-aurora?
Comment 18•9 years ago
|
||
Comment on attachment 8762006 [details]
Bug 1268462 - match main popup appearance in bookmarks toolbar submenus,
Fix the regression issue of inconsistent submenu popup back ground color and it's verified. Take it in aurora & beta.
Attachment #8762006 -
Flags: approval-mozilla-beta?
Attachment #8762006 -
Flags: approval-mozilla-beta+
Attachment #8762006 -
Flags: approval-mozilla-aurora?
Attachment #8762006 -
Flags: approval-mozilla-aurora+
Comment 19•9 years ago
|
||
bugherder uplift |
Comment 20•9 years ago
|
||
bugherder uplift |
Updated•9 years ago
|
Flags: qe-verify+
Comment 21•9 years ago
|
||
I managed to reproduce this bug using Fx 46.0 build ID:20160418114253 on Ubuntu 14.04.
Confirmed the fix on Fx 48.0b4, build ID 20160627144420 and Fx 49.0a2, build ID 20160630004007.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in
before you can comment on or make changes to this bug.
Description
•