Tooltip with large, unwrappable text drawn incorrectly




4 years ago
4 years ago


(Reporter: richardgodbee, Unassigned)



Firefox Tracking Flags

(Not tracked)



(2 attachments)



4 years ago
Created attachment 8489842 [details]
Screenshot of tooltip with 498 char string rendered incorrectly

(I'm not sure if this belongs in XUL or Layout or something else...)

While changing a setting in Firefox 33.0 beta 3 (OS X)'s about:config, my mouse pointer came to rest on top of a string that is very long (498 chars) and doesn't have any whitespace (or other characters to wrap on) in it.  The tooltip that appeared was drawn incorrectly: the tooltip's solid yellow box was the same width as the Firefox window, but the box was drawn against the left side of the screen and the tooltip text spanned the entire screen width (2560 px), meaning lots of text was drawn outside the bounds of the tooltip.  (See first attached screenshot.)

Moving the mouse pointer over a string in about:config that's a whopping 9296 characters long and also has no characters to wrap on produces even weirder behavior: a pile of renderings of previously displayed tooltips is shown.  (See second attached screenshot.)

This bug only seems to be tickled by strings that are very long and don't have any characters to wrap the text on.  Tooltips with very long strings that can be wrapped before the tooltip width exceeds the Firefox window's width are rendered correctly.

Comment 1

4 years ago
Created attachment 8489843 [details]
Screenshot of tooltip with 9296 char string rendered incorrectly
Is this a new bug in Firefox33 or can you reproduce the same issue with Firefox32 ?
There is a fix for tooltips from bug 957396 in Firefox33
Flags: needinfo?(richardgodbee)

Comment 3

4 years ago
(In reply to Matthias Versen [:Matti] from comment #2)
> Is this a new bug in Firefox33 or can you reproduce the same issue with
> Firefox32 ?
> There is a fix for tooltips from bug 957396 in Firefox33

I can reproduce this in the current nightly release (20140916133141), the current beta (33.0b4), the current release (32.0.1), and the current ESR (31.1.0).
Flags: needinfo?(richardgodbee)
there is bug 805039 but that one is different
Component: Untriaged → Layout
I can't reproduce the exact same symptoms on Linux, but I can reproduce a related issue (probably the Linux manifestation of the same bug):
 1. Create about:config pref with a 3000-char string as its value. (e.g. aaaaaaaaaaaaa[...]a)
 2. Hover that pref's value, to see what kind of tooltip shows up.

 The tooltip that shows up is just a subtle transparent shadow; there's no actual visible tooltip.

Nightly version: 35.0a1 (2014-09-17)
UA string: Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0
Ever confirmed: true
OS: Mac OS X → All
Hardware: x86_64 → All
Version: 33 Branch → Trunk
You need to log in before you can comment on or make changes to this bug.