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

Bug 377760

Summary: JavaScript error when disposing a form containing a scrolled composite
Product: [RT] RAP Reporter: Claudio Guglielmo <claudio.guglielmo>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3    
Version: 1.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Eclipse project with sample code none

Description Claudio Guglielmo CLA 2012-04-26 09:47:40 EDT
Created attachment 214604 [details]
Eclipse project with sample code

The following exception occurs when disposing a form containing a scrolled composite.

Error stack:
TypeError: Cannot call method 'getFocusRoot' of null
    at [object Object].getFocusRoot (http://127.0.0.1:64622/rwt-resources/rap-client-20af026e.js:43:615)
    at [object Object]._onChangeFocusedChild (http://127.0.0.1:64622/rwt-resources/rap-client-20af026e.js:194:2347)
    at [object Object]._dispatchEvent (http://127.0.0.1:64622/rwt-resources/rap-client-20af026e.js:17:2060)
    at [object Object].dispatchEvent (http://127.0.0.1:64622/rwt-resources/rap-client-20af026e.js:17:1445)
    at [object Object].createDispatchChangeEvent (http://127.0.0.1:64622/rwt-resources/rap-client-20af026e.js:17:1225)
    at [object Object].setFocusedChild (eval at <anonymous> (http://127.0.0.1:64622/rwt-resources/rap-client-20af026e.js:12:6083))
    at Object._onmouseevent_post (http://127.0.0.1:64622/rwt-resources/rap-client-20af026e.js:45:6281)
    at Object._processMouseEvent (http://127.0.0.1:64622/rwt-resources/rap-client-20af026e.js:45:5697)
    at Object._onmouseevent (http://127.0.0.1:64622/rwt-resources/rap-client-20af026e.js:45:4592)
    at HTMLBodyElement.<anonymous> (http://127.0.0.1:64622/rwt-resources/rap-client-20af026e.js:15:514)

This happens since 2012-03-30. With Juno M6 it works fine.

Steps to reproduce:
Run the attached rwt application, click on the button two times and then on the empty space. The above exception appears (at least in the js console) and clicking the button has no effect anymore.
Comment 1 Ivan Furnadjiev CLA 2012-04-26 10:01:25 EDT
This is a duplicate of bug 377739. I fixed it today.

*** This bug has been marked as a duplicate of bug 377739 ***
Comment 2 Claudio Guglielmo CLA 2012-04-26 10:15:19 EDT
Wow, that was a fast response! Thank you for fixing it. I'll check it with the next milestone build.