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

Bug 420981

Summary: [Menu] JavaScript error when pressing Left arrow key on opened popup menu
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: rsternberg
Version: unspecified   
Target Milestone: 2.2 M3   
Hardware: PC   
OS: Windows 7   
Whiteboard: sr212

Description Ivan Furnadjiev CLA 2013-11-04 06:32:40 EST
Reproducible with Controls Demo -> Button tab:
1. Right click on the buttons *parent composite* -  not on the buttons.
2. Popup menu appears with "Item 1" to "Item 5"
3. Press Left arrow key - application crashes
--------------------------
Error: TypeError: this._opener.getParentMenu is not a function

  stack: .members._handleKeyLeft@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:45698
.members._onKeyPress@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:45666
.members._dispatchEvent@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:6261
.members.dispatchEvent@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:6191
.statics._processKeyEvent@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:17445
.statics._onkeyevent_post@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:17402
.statics._onKeyEvent@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:17382
.statics.bind/wrap@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:5725

  fileName: http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js
  lineNumber: 45698
  columnNumber: 0
  Stack: .members._handleKeyLeft@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:45698
.members._onKeyPress@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:45666
.members._dispatchEvent@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:6261
.members.dispatchEvent@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:6191
.statics._processKeyEvent@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:17445
.statics._onkeyevent_post@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:17402
.statics._onKeyEvent@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:17382
.statics.bind/wrap@http://127.0.0.1:8080/controlsdemo/rwt-resources/rap-client.js:5725

  Debug: on
Comment 1 Ivan Furnadjiev CLA 2013-11-04 07:34:42 EST
Fixed in master with commit 0a0093b0f8b34a32204ba12a1fa2153dd0bf4ca9.
Comment 2 Ralf Sternberg CLA 2014-01-27 07:54:19 EST
Fixes a crash, obvious change, +1 for 2.1.2.
Comment 3 Ivan Furnadjiev CLA 2014-01-31 05:01:30 EST
Backported to 2.1-maintenance branch with change https://git.eclipse.org/r/21323