modify the textContent of an element of a tooltip breaks the showing of all tooltip.




13 years ago
9 years ago


(Reporter: martin, Unassigned)



Windows XP

Firefox Tracking Flags

(Not tracked)




(4 attachments)

1.03 KB, application/vnd.mozilla.xul+xml
1.16 KB, application/vnd.mozilla.xul+xml
1.05 KB, application/vnd.mozilla.xul+xml
1.26 KB, application/vnd.mozilla.xul+xml


13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.12) Gecko/20050919 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.12) Gecko/20050919 Firefox/1.0.7

If I modify the textContent of a label in a tooltip on popupshowing, this
textContent is well modified (I can see it in DOM Inspector), but the tooltip
does not appear, and then all tooltips of the xul window can't be showing.

There is a simple workaround for firefox 1.0.7, simply modify the hidden
property of the label to true before changing his textContent, and set again the
hidden property to false after. None of tooltip are broken, itself included.
But this workaround has no effect in firefox 1.5 beta 2.

A strange thing , if I look into Venkman when the popupshowing event fire, and
advance step by step, enter in pop.xml step by step, the tooltip is showing !
(with the 2 versions of firefox, 1.0.7 and 1.5 beta2)

Only tested under windows.

Reproducible: Always

Steps to Reproduce:
1. go to
2. stay hover the first button, a tooltip appear with the modified value of a label
3. stay hover the second one, no tooltip appear.

Actual Results:  
no tooltip appears, and then the first can't be showed.

Expected Results:  
the tooltip should be showed with the modified textContent of a label, and the
other ones too.

Comment 1

13 years ago
Created attachment 200340 [details]

same testcase as the link in the description

Comment 2

13 years ago
Created attachment 200341 [details]
workarounf for firefox 1.0.7 only

this testcase has a workaround for firefox 1.0.7, but not for firefox 1.5 beta2

Comment 3

13 years ago
Created attachment 200342 [details]
testcase with debugger breakpoint.


13 years ago
Assignee: nobody → jag
Component: General → XP Toolkit/Widgets
Keywords: testcase
Product: Firefox → Core
QA Contact: general → jrgmorrison
Version: unspecified → Trunk

Comment 4

13 years ago
Confirming with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051024 Firefox/1.5

This happens when modifying DOM under <label>, but not when outside the label. E.g. adding a text node inside the label prevents the tooltip from showing, while removing the label from the tooltip does not cause the bug.
Ever confirmed: true

Comment 5

13 years ago
Ok, Nickolay Ponomarev is right. A solution is to replace the entire node of the element, not only the textNode inside (see the following workaround example posted)
No problems with firefox 1.0.7 and 1.5 beta 2.

Perhaps now the severity of this bug is minor ?

Comment 6

13 years ago
Created attachment 200985 [details]
workaround for firefox 1.0.7 and 1.5 beta 2

this is a solution for firefox 1.0.7 and 1.5 beta2


9 years ago
Assignee: jag → nobody
You need to log in before you can comment on or make changes to this bug.