Here's a patch for Mac-specific issue http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8001161 (mac: Cannot enter password into the field unless "Show Console" is enabled)
The cause of the issue is that there's a delay in delivering NPCocoaEventWindowFocusChanged event to embedded frame and this event may mistakenly deactivate window (which was activated by opposite "gained" request before). The bug report includes more information.
Webrev: http://cr.openjdk.java.net/~dcherepanov/8001161/webrev.0/ Thanks, Dmitry