JDK-8001161 : [macosx] EmbeddedFrame doesn't become active window
  • Type: Bug
  • Component: client-libs
  • Affected Version: 7u6,7u9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2012-10-18
  • Updated: 2015-03-17
  • Resolved: 2013-07-15
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 7 JDK 8
7u15Fixed 8Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
Java version 7u9
Browser: Safari v  6.0.1 (8536.26.14)
OS X 10.8.2
Hardware: MacBook Pro w/Retina��display, 2,7 GHz Intel Core i7, 16 Gb 1600 Mhz DDR3, Intel HD 4000 512 Mb

Regression: applet last worked in: 7u6

When trying to enter the password, the user is unable to type in the password field. After enabling the Java Console with  "Show Console" in Java control Panel the password field now allows characters to be typed. 


Expected behavior: Able to enter password in password field. 
Actual behavior: Cannot enter password into the field unless "Show Console" is enabled in Java control Panel settings.

Steps to reproduce:
1) Go to https://retail.payment.ru/n/Auth/LoginCert.aspx
2) Click on the button with ... ( with 3 dots in it)
3) Point to any file with pfx extension ( You can use any text file, just change its extension)
4) Push button with sign ������������������
5) You will see entry field for password
6) You will not be able to type any characters in the password field

Java Console output:
Java Plug-in 10.9.2.05
Using JRE version 1.7.0_09-b05 Java HotSpot(TM) 64-Bit Server VM
User home directory = /Users/Duke
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
cache: Initialize resource manager: com.sun.deploy.cache.ResourceProviderImpl@37d9ddba
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.,com.sun.javaws
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.,com.sun.javaws
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.,com.sun.javaws,com.sun.deploy
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.,com.sun.javaws,com.sun.deploy
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.,com.sun.javaws
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.,com.sun.javaws
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.,com.sun.javaws,com.sun.deploy
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.,com.sun.javaws,com.sun.deploy
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,apple.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
basic: tap installed
basic: Creating PluginEmbeddedFrame served by PlaceHolderServerName-7503
basic: Done creating PluginEmbeddedFrame
basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@31e089d
basic: Plugin2ClassLoader.addURL parent called for https://retail.payment.ru/n/Cab/retail.jar
security: Accessing keys and certificate in Mozilla user profile: null
security: JSS is not configured
security: Blacklist revocation check is enabled
security: Trusted libraries list check is enabled
network: Cache entry found [url: https://retail.payment.ru/n/Cab/retail.jar, version: null] prevalidated=true/0
cache: Resource https://retail.payment.ru/n/Cab/retail.jar has expired.
network: Connecting https://retail.payment.ru/n/Cab/retail.jar.pack.gz with proxy=DIRECT
network: Connecting http://retail.payment.ru:443/ with proxy=DIRECT
security: Loading Root CA certificates from /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/security/cacerts
security: Loaded Root CA certificates from /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/security/cacerts
security: Loading SSL Root CA certificates from /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/security/cacerts
security: Loaded SSL Root CA certificates from /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/security/cacerts
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Checking if certificate is in Deployment denied certificate store
network: Connecting https://retail.payment.ru/n/Cab/retail.jar with proxy=DIRECT
network: ResponseCode for https://retail.payment.ru/n/Cab/retail.jar : 304
network: Encoding for https://retail.payment.ru/n/Cab/retail.jar : null
network: Disconnect connection to https://retail.payment.ru/n/Cab/retail.jar
cache: Reading Signers from 3625 https://retail.payment.ru/n/Cab/retail.jar | /Users/Duke/Library/Application Support/Oracle/Java/Deployment/cache/6.0/58/49ee2bba-5e2928d8.idx
cache: Done readSigners(https://retail.payment.ru/n/Cab/retail.jar)
cache:  Read manifest for https://retail.payment.ru/n/Cab/retail.jar: read=112 full=1614
basic: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
19:41:28.148 SEVERE "?????? 1.4.2 ?? 09 ??????? 2010 ????" , ru.psbank.applet.RetailSignApplet.<init>(), Seq=0, Thread=32
network: Cache entry not found [url: https://retail.payment.ru/n/Auth/, version: null]
network: Cache entry not found [url: https://retail.payment.ru/n/Auth/ru/signalcom/crypto/provider/SignalCOMProvider.class, version: null]
network: Connecting https://retail.payment.ru/n/Auth/ru/signalcom/crypto/provider/SignalCOMProvider.class with proxy=DIRECT
19:41:28.255 CONFIG "Signal-COM not installed" , ru.psbank.applet.RetailSignApplet.<init>(), Seq=1, Thread=32
security: Loading Deployment certificates from /Users/Duke/Library/Application Support/Oracle/Java/Deployment/security/trusted.certs
security: Loaded Deployment certificates from /Users/Duke/Library/Application Support/Oracle/Java/Deployment/security/trusted.certs
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Validate the certificate chain using CertPath API
security: Loading Root CA certificates from /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/security/cacerts
security: Loaded Root CA certificates from /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/security/cacerts
security: Obtain certificate collection in Root CA certificate store
security: Obtain certificate collection in Root CA certificate store
security: Obtain certificate collection in Root CA certificate store
security: Obtain certificate collection in Root CA certificate store
security: The certificate hasnt been expired, no need to check timestamping info
security: Found jurisdiction list file
security: Start checking trusted extension for this certificate
security: Start comparing to jurisdiction list with this certificate
security: The CRL support is disabled
security: The OCSP support is disabled
security: This OCSP End Entity validation is disabled
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment permanent certificate store
basic: Applet loaded.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 126111 us, pluginInit dt 1828679 us, TotalTime: 1954790 us
basic: Applet initialized
basic: Starting applet
basic: completed perf rollup
basic: Applet made visible
basic: Applet started
basic: Told clients applet is started
java.lang.ArrayIndexOutOfBoundsException: 14 >= 0
at java.util.Vector.elementAt(Vector.java:470)
at com.apple.laf.AquaFileSystemModel.getValueAt(AquaFileSystemModel.java:237)
at javax.swing.JTable.getValueAt(JTable.java:2720)
at javax.swing.JTable$AccessibleJTable$AccessibleJTableCell.getCurrentAccessibleContext(JTable.java:7956)
at javax.swing.JTable$AccessibleJTable$AccessibleJTableCell.getAccessibleText(JTable.java:8260)
at sun.lwawt.macosx.CAccessibleText$2.call(CAccessibleText.java:62)
at sun.lwawt.macosx.CAccessibleText$2.call(CAccessibleText.java:57)
at sun.lwawt.macosx.LWCToolkit$CallableWrapper.run(LWCToolkit.java:527)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
at sun.lwawt.macosx.LWCToolkit$CPeerEvent.dispatch(LWCToolkit.java:684)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:155)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
at java.awt.Dialog.show(Dialog.java:1077)
at javax.swing.JFileChooser.showDialog(JFileChooser.java:741)
at ru.psbank.applet.RetailSignApplet.select(RetailSignApplet.java:455)
at ru.psbank.applet.RetailSignApplet.access$000(RetailSignApplet.java:38)
at ru.psbank.applet.RetailSignApplet$1.actionPerformed(RetailSignApplet.java:118)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:696)
at java.awt.EventQueue$4.run(EventQueue.java:694)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Vector.java:470)
at com.apple.laf.AquaFileSystemModel.getValueAt(AquaFileSystemModel.java:237)
at javax.swing.JTable.getValueAt(JTable.java:2720)
at javax.swing.JTable$AccessibleJTable$AccessibleJTableCell.getCurrentAccessibleContext(JTable.java:7956)
at javax.swing.JTable$AccessibleJTable$AccessibleJTableCell.getAccessibleText(JTable.java:8260)
at sun.lwawt.macosx.CAccessibleText$2.call(CAccessibleText.java:62)
at sun.lwawt.macosx.CAccessibleText$2.call(CAccessibleText.java:57)
at sun.lwawt.macosx.LWCToolkit$CallableWrapper.run(LWCToolkit.java:527)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
at sun.lwawt.macosx.LWCToolkit$CPeerEvent.dispatch(LWCToolkit.java:684)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:155)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
at java.awt.Dialog.show(Dialog.java:1077)
at javax.swing.JFileChooser.showDialog(JFileChooser.java:741)
at ru.psbank.applet.RetailSignApplet.select(RetailSignApplet.java:455)
at ru.psbank.applet.RetailSignApplet.access$000(RetailSignApplet.java:38)
at ru.psbank.applet.RetailSignApplet$1.actionPerformed(RetailSignApplet.java:118)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:696)
at java.awt.EventQueue$4.run(EventQueue.java:694)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
19:42:10.077 FINE "Signing string 'ZUYxSjNBVEo='" , ru.psbank.applet.RetailSignApplet.sign(), Seq=211, Thread=32

Comments
sqe got waiver on verification of sync bugs The issue was verified in 7u21 or/and 7u25.
01-07-2013

Regression test : n Complexity : low Changeset : http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/rev/15e0b98fc0e9
13-03-2013

Here's the list of the native focus events coming when "password" dialog appears: - NPCocoaEventWindowFocusChanged (hasFocus = false) - the plug-in window loses focus - windowDidBecomeKey: - the dialog becomes the key window and the following events are generated in response to the native events (it also triggers chain of other focus events): - WINDOW_LOST_FOCUS - embedded frame is losing focus - WINDOW_GAINED_FOCUS - dialog becomes focused window and everything works as expected when the events are delivered in the correct order ("lost" event first and "gained" event second). But it happens pretty often to me that the events are delivered in reverse order and "lost" event deactivates the dialog window. The reason why the order is reversed is that there's a delay of communication between server/client processes and NPCocoaEventWindowFocusChanged will be delivered to the embedded frame after the "gain" event comes the dialog. Seems like the easiest way to fix the problem is to ignore NPCocoaEventWindowFocusChanged in the embedded frame (ignore when hasFocus equals false only). A side effect of the change is that the embedded doesn't become deactivated at Java level (text field with blinking cursor) when user activates another native application but this is a low priority issue and additionally it works consistently with Apple's Plugin. Review started: http://mail.openjdk.java.net/pipermail/awt-dev/2012-December/003964.html
11-12-2012

It would be the right thing to do to have this issue fixed in 7u11 based on Scotts analysis: "The applet doesn't think it is active, so it rejects keystrokes."
28-11-2012

Is this something we are looking at fixing in 7u11?
28-11-2012

My theory is this: the problem is window activation. The applet doesn't think it is active, so it rejects keystrokes. But having the console window open, and then clicking back on the applet, restores focus and causes everything to work again.
19-10-2012

Dmitry owns this part of the plugin. We have had other instances of this bug, but this one mentions the need to turn on the Java Console. That's an important fact/hint I hadn't seen before.
19-10-2012

Scott, could you please triage?
19-10-2012

I tested this with Java 7u7 (build 1.7.0_07-b10) and was able to reproduce this.
19-10-2012

According to Introduced in field, it's 7u9 but description says last worked version is 7u6. Is that means issues exists in 7u7 also ? Please update.
19-10-2012