Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 420605

Summary: [ToolTip Widget] Invisible tooltips are not destroyed
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: 2.2 M3   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Ivan Furnadjiev CLA 2013-10-29 06:51:50 EDT
Reproducible with Controls Demo -> ToolTip tab.
1. Click on "Show ToolTip button"
2. Click on the tooltip to hide it
3. Click on "Show ToolTip button" again
The old tooltip is destroyed by the server (destroy operation exists in the protocol message), but ToolTip.js#destruct is never called. If you repeat the above steps and look at the document (html), the tooltip div remains in the document. It's related to VisibilityAnimationMixin, where a "destroy" listener is attached.
Comment 1 Ivan Furnadjiev CLA 2013-10-29 06:55:24 EDT
I set the priority to P2 as this leads to memory leak.
Comment 2 Ivan Furnadjiev CLA 2013-10-29 07:03:35 EDT
Some more info. In Widget.js#destroy the call this.dispatchSimpleEvent( "destroy" ) returns false and tooltip is not added to disposed queue.
Comment 3 Ivan Furnadjiev CLA 2013-11-05 09:10:43 EST
Fixed in master with commit 5dd332e95fbd81fbb03b4485269bd7d9e97c5f72.