JDK-8074481 : [macosx] Menu items are appearing on top of other windows
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 8u40
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2015-03-05
  • Updated: 2015-09-29
  • Resolved: 2015-03-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u60Fixed 9 b61Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
On mac-os, the applet menu items are appearing on top of other windows.  
Menu items in a JFrame does not have this issue.

To reproduce: load any applet with JMenu or JCombobox or JPopupMenu, open a menu/combo/popup then activate any other native window. 
1. The popup is not closed after switching to another window
2. When the native window is moved over the applet the popup appears behind this window.
Comments
Review created: http://cr.openjdk.java.net/~anashaty/8074481/9/webrev.00/ no regressions discovered according to [closed/]java/awt/Focus tests
18-03-2015

The suggested fix is: - revert the original JDK-8001161 fix - fix it in the LWWindowPeer.changeFocusedWindow(): when the current focused window is not the window which receives focus lost then is shouldn't be propagated.
18-03-2015

This is the regression from JDK-8001161 fix. The CEmbeddedFrame just doesn't process FOCUS_LOST now. Looks like we need to find another fix for JDK-8001161
17-03-2015