Closed
Bug 1197165
Opened 9 years ago
Closed 9 years ago
Invisible html hint in firefox developer
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
VERIFIED
FIXED
mozilla47
People
(Reporter: matheuspfaustino, Assigned: karlt)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(7 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0
Build ID: 20150821004008
Steps to reproduce:
Just points your mouse in a tab and wait to it shows your whole text in a hint.
Actual results:
It'll show your content in a, almost, invisible hint, without a background.
Expected results:
The background should not be transparent.
Reporter | ||
Updated•9 years ago
|
Severity: normal → major
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Reporter | ||
Comment 1•9 years ago
|
||
I'm using Numix-Frost as GTK theme.
Reporter | ||
Comment 3•9 years ago
|
||
GTK+ 3.16.6
Comment 4•9 years ago
|
||
A few questions;
- Does this happen with the classic (non-developer) theme?
- What do tooltips look like in other GTK3 applications with your theme?
Thanks!
Flags: needinfo?(matheuspfaustino)
Reporter | ||
Comment 5•9 years ago
|
||
Sorry for the delay.
1. Yes
2. I'm attaching images from that
Flags: needinfo?(matheuspfaustino)
Reporter | ||
Comment 6•9 years ago
|
||
Reporter | ||
Updated•9 years ago
|
Attachment #8653446 -
Attachment description: Screenshot from 2015-08-27 09-13-32.png → Without Dev theme
Reporter | ||
Comment 7•9 years ago
|
||
Reporter | ||
Updated•9 years ago
|
Attachment #8653452 -
Attachment description: Without → Without dev theme (tab)
Reporter | ||
Comment 8•9 years ago
|
||
Reporter | ||
Comment 9•9 years ago
|
||
Reporter | ||
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
Not able to reproduce this with default theme, so I am not sure this should be categorized as a blocker to shipping GTK3. Removing the block for now until we can get confirmation that this is not just a problem with the theme.
No longer blocks: ship-gtk3
Whiteboard: [gfx-noted]
Reporter | ||
Comment 12•9 years ago
|
||
I don't know if it could be help, but I'm using antergos distro in my pc.
Reporter | ||
Comment 13•9 years ago
|
||
I tested now and in live cd, it's happening yet.
Comment 14•9 years ago
|
||
Found the offending line of CSS in the Numix-Frost theme;
>.tooltip * {
> background-color: transparent;
>}
This appears to be set to make all children of tooltips have a transparent background. I'm not sure how we're triggering this, though...
Comment 15•9 years ago
|
||
Confirmed for me.
Using the Clearlooks-Phenix theme: commenting out those lines the problem doesn't occur.
Comment 16•9 years ago
|
||
I've got the same issue (and same CSS declaration) in Greybird theme and Zukitwo theme; firefox-45.0_beta8 wa the last version I tested.
The aim with this in the themes *seems* to be to remove background from all tooltip contents so that the background of the tooltip itself renders unhindered. I've no idea why this doesn't work in firefox given it works very well in my other gtk3 apps and the border and other elements seem to render just fine.
I've hacked my themes in the meantime to assign the same background property as is assigned to .tooltip for now, just so i can read the things. However it's worth noting that by doing this the border and potentially other eyecandy doesn't show up on the tooltip anymore. Is it possible that firefox isn't actually rendering the base tooltip container but instead just the tooltip content?
Assignee | ||
Comment 17•9 years ago
|
||
(In reply to Ian Stakenvicius from comment #16)
> Is it possible that
> firefox isn't actually rendering the base tooltip container but instead just
> the tooltip content?
It's possible that there is something else that Gecko should be drawing, but
it is trying to draw the tooltip background.
I wonder whether the gtk_widget_set_name(widget, "MozillaGtkWidget") is
causing a failure to match. Might be worth trying removing that.
https://dxr.mozilla.org/mozilla-central/rev/d848a5628d801a460a7244cbcdea22d328d8b310/widget/gtk/gtk3drawing.c#513
The code to draw the background tries to mimic what GTK does. It's possible
that is not quite the same.
https://dxr.mozilla.org/mozilla-central/rev/d848a5628d801a460a7244cbcdea22d328d8b310/widget/gtk/gtk3drawing.c#1940
Assignee | ||
Updated•9 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → karlt
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 18•9 years ago
|
||
This is consistent with gtktooltip.c.
gtk_style_context_save() modifies the CSS node hierarchy causing this rule to
incorrectly match:
.tooltip * {
background-color: transparent;
}
See also https://bugzilla.gnome.org/show_bug.cgi?id=761870#c2
Review commit: https://reviewboard.mozilla.org/r/37769/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/37769/
Attachment #8726033 -
Flags: review?(andrew)
Updated•9 years ago
|
Attachment #8726033 -
Flags: review?(andrew) → review+
Comment 19•9 years ago
|
||
Comment on attachment 8726033 [details]
MozReview Request: bug 1197165 apply tooltip style class when creating window instead of when drawing r?acomminos
https://reviewboard.mozilla.org/r/37769/#review34309
LGTM.
It might be interesting to see how similar selectors affect other widgets with gtk_style_context_save.
Comment 20•9 years ago
|
||
Comment 21•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Comment 22•9 years ago
|
||
Works great here -- any chance it can make it into firefox-45 prior to release?
Assignee | ||
Comment 23•9 years ago
|
||
Thanks for the feedback. No chance of this getting into 45, sorry, but only distro builds will have --enable-default-toolkit=cairo-gtk3, so there is the option for distibutions to add the patch if building this way.
Assignee | ||
Comment 24•9 years ago
|
||
Comment on attachment 8726033 [details]
MozReview Request: bug 1197165 apply tooltip style class when creating window instead of when drawing r?acomminos
Approval Request Comment for 46
[Feature/regressing bug #]: bug 627699
[User impact if declined]: hard or impossible to read tooltips with some GTK themes.
[Describe test coverage new/current, TreeHerder]: none.
[Risks and why]: low risk.
The patch changes the code to be similar to GTK versions 3.6 and newer.
GTK version 3.4 (year 2012) had similar code to what is removed here, so there is a small chance that some theme was depending on the quirks of that code. However, I think that is unlikely as the quirks were unexpected and not documented so it would be dangerous for any theme to depend on theme. I also can't think of any reason for themes to want to use them.
[String/UUID change made/needed]: none.
Attachment #8726033 -
Flags: approval-mozilla-beta?
Assignee | ||
Updated•9 years ago
|
Comment 26•9 years ago
|
||
Marking affected for 46 since we intend to ship gtk in 46
status-firefox46:
--- → affected
Comment 27•9 years ago
|
||
Comment on attachment 8726033 [details]
MozReview Request: bug 1197165 apply tooltip style class when creating window instead of when drawing r?acomminos
OK to uplift to beta, fix for theme readability
Attachment #8726033 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 28•9 years ago
|
||
bugherder uplift |
Updated•9 years ago
|
QA Whiteboard: [good first verify]
Comment 29•9 years ago
|
||
Verified as fixed in Firefox Developer Editor 47.0a2 (2016-03-16) Debian 8 GNU/Linux
Verified as fixed in Firefox Beta 46.0b1 Debian 8 GNU/Linux
Status: RESOLVED → VERIFIED
QA Whiteboard: [good first verify] → [good first verify][bugday-20160316]
You need to log in
before you can comment on or make changes to this bug.
Description
•