JDK-2160179 : Regression: heavyweight popups cause SecurityExceptions in applets
  • Type: Backport
  • Backport of: JDK-6675802
  • Component: client-libs
  • Sub-Component: javax.swing
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2008-03-14
  • Updated: 2011-01-19
  • Resolved: 2008-06-09
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 6 JDK 7
6u10 b26Fixed 7Fixed
Description
Please, find the evaluation in the appropriate section of jdk7 CR version.

Comments
SUGGESTED FIX webrev: http://sa.sfbay.sun.com/projects/swing_data/6u10/6675802/ The fix: src/share/classes/javax/swing/Popup.java *** 210,221 **** --- 210,229 ---- setFocusableWindowState(false); setName("###overrideRedirect###"); // Popups are typically transient and most likely won't benefit // from true double buffering. Turn it off here. getRootPane().setUseTrueDoubleBuffering(false); + // Try to set "always-on-top" for the popup window. + // Applets usually don't have sufficient permissions to do it. + // In this case simply ignore the exception. + try { setAlwaysOnTop(true); + } catch (SecurityException se) { + // setAlwaysOnTop is restricted, + // the exception is ignored } + } public void update(Graphics g) { paint(g); }
10-06-2008

EVALUATION Please, find the evaluation in the appropriate section of the jdk7 CR version. According to the shortage of time only simple (and not complete) fix version was integrated. There are a couple of related smaller problems, which should be solved in 6u10: 6580930, 6591503.
16-04-2008