Open Bug 313266 Opened 19 years ago Updated 2 years ago

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

Categories

(Core :: XUL, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: joliclic, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(4 files)

1.03 KB, application/vnd.mozilla.xul+xml
Details
1.16 KB, application/vnd.mozilla.xul+xml
Details
1.05 KB, application/vnd.mozilla.xul+xml
Details
1.26 KB, application/vnd.mozilla.xul+xml
Details
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 http://joliclic.free.fr/mozilla/bugs/dynamicTooltip/
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.
Attached file testcase
same testcase as the link in the description
this testcase has a workaround for firefox 1.0.7, but not for firefox 1.5 beta2
Assignee: nobody → jag
Component: General → XP Toolkit/Widgets
Keywords: testcase
Product: Firefox → Core
QA Contact: general → jrgmorrison
Version: unspecified → Trunk
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.
Status: UNCONFIRMED → NEW
Ever confirmed: true
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 ?
this is a solution for firefox 1.0.7 and 1.5 beta2
Assignee: jag → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: