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

Bug 377739

Summary: JavaScript error when closing the ProgressView
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: claudio.guglielmo
Version: 1.5   
Target Milestone: 1.5 M7   
Hardware: All   
OS: All   
Whiteboard:

Description Ivan Furnadjiev CLA 2012-04-26 06:16:04 EDT
1. Start Workbench Demo -> Planning Perspective
2. Click Start Job toolbar item
3. Click "Show background operations in ProgressView" - the icon close to the bottom right corner of the window
4. Close ProgressView by click on the "X" button.
..
Error: Error: Operation "set" on target "w1" of type "[object Object]" failed:
this.getFocusRoot() is null
Properties: 
focusControl = w61
..
Comment 1 Ivan Furnadjiev CLA 2012-04-26 06:17:40 EDT
Marked as P1 as it is working in 1.5M6 but not in CVS HEAD.
Comment 2 Ivan Furnadjiev CLA 2012-04-26 07:13:50 EDT
This error has been introduced by the changes in Widget.js#destroy for bug 324438 (rev.1.21). As a result, "changeParent" event is not fired on destroy (parent set to null).
Comment 3 Ivan Furnadjiev CLA 2012-04-26 08:27:30 EDT
Fixed in ScrolledComposite#_onChangeFocusedChild to get the new focused child from the event itself.
Comment 4 Ivan Furnadjiev CLA 2012-04-26 10:01:25 EDT
*** Bug 377760 has been marked as a duplicate of this bug. ***