Open Bug 1261064 Opened 4 years ago Updated 9 months ago

[GTK3] The dropdown menus are not displayed with Ubuntu 14.04 theme: menubar menus should differ from context menus (Ubuntu 12.04)

Categories

(Core :: Widget: Gtk, defect, P4)

All
Linux
defect

Tracking

()

Tracking Status
firefox45 --- unaffected
firefox46 --- affected
firefox47 --- affected
firefox48 --- affected

People

(Reporter: mboldan, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: tpi:+)

Attachments

(2 files, 1 obsolete file)

Attached image File menu.png
[Affected versions]:
- Firefox 46.0b6, Firefox 47.0a2 (2016-03-31) and Firefox 48.0a1 (2016-03-30)

[Affected platforms]:
- Ubuntu 14.04 x64

[Steps to reproduce]:
1. Launch Firefox.
2. Activate the menu bar.
3. Click on a button from the menu bar (eg. File).

[Expected result]:
- The dropdown menu is displayed on white background with dark gray text.

[Actual result]:
- The dropdown menu is displayed on dark gray background with white text (I think that Ubuntu theme is used for this dropdowns).

[Regression range]:
- This is not a regression since the issue is reproducible on all gtk3 builds.

[Additional notes]:
- This issue is not reproducible on Ubuntu 12.04 x86.
- The issue is also reproducible if clicking the 'Tools for all add-ons' button from about:addons, or if trying to install an add-on (e.g.http://ted.mielczarek.org/mozilla/crashme.html) and clicking on the button next to the 'Allow' permission. 
- See the attached screenshots.
- On Firefox 42, where the GTK2 is used, the dropdowns are displayed as in the expected results (see Firefox 42 screenshot).
The intention is that Firefox should look like other GTK3 apps on the system,
except where the Firefox team chooses to use their own style.

The bug here is therefore that the menubar menus are not using system colors on 12.04.  In GTK3 apps on 12.04, menubar menus should have a dark background and context menus should have a light background.  gtk3-widget-factory and gnome-character-map are good test apps.  In the latter, the context menu is available on editable text.

I don't know what exactly is the norm on 14.04, but in Ambience
15.04_p20150410 both types of menus have dark backgrounds, and Firefox follows that theme.

In GTK2 apps, menus all have light backgrounds.

Given GTK2 apps already differ from GTK3 apps on 12.04 and that most
applications use Unity's menubar, this is probably not worth fixing for 12.04.

A similar issue may affect other themes though.
This came up in another bug also, but I don't recall whether that bug is still open to cover this or it was a side-issue.
Summary: [GTK3] The dropdown menus are displayed with Ubuntu theme → [GTK3] The dropdown menus are not displayed with Ubuntu 12.04 theme: menubar menus should differ from context menus
Attached image ubuntu stock Firefox 45.0.1 (obsolete) —
As for the Ubuntu 14.04. I installed that on VM and tested Firefox from Ubuntu (45.0.1) and Mozilla Nightly (48.0a1). 

I don't know if I do something wrong or my Ubuntu is broken (although I have the latest updates) The Ubuntu Firefox 45.0.1 (running gtk2) looks very badly. The Mozilla Nightly (48.0a1) does not suffer from those bugs, but I see the difference in menu background as reported here.
Comment on attachment 8739384 [details]
ubuntu stock Firefox 45.0.1

Hm, browser restart helped here. No idea why but seems to works as expected here. Maybe problem with updates, sorry for the noise.
Attachment #8739384 - Attachment is obsolete: true
Summary: [GTK3] The dropdown menus are not displayed with Ubuntu 12.04 theme: menubar menus should differ from context menus → [GTK3] The dropdown menus are not displayed with Ubuntu 14.04 theme: menubar menus should differ from context menus
Attached image gedit on Ubuntu 14.04
Other Gtk3 apps on 14.04 also use the white-on-black context menu layout so Firefox does not differ so much.
Attachment #8739386 - Attachment description: gedit un Ubuntu 14.04 → gedit on Ubuntu 14.04
Summary: [GTK3] The dropdown menus are not displayed with Ubuntu 14.04 theme: menubar menus should differ from context menus → [GTK3] The dropdown menus are not displayed with Ubuntu 14.04 theme: menubar menus should differ from context menus (Ubuntu 12.04)
Priority: -- → P4
Whiteboard: tpi:+
You need to log in before you can comment on or make changes to this bug.