JDK-4219380 : need "showWindow" AWTPermission
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6
  • CPU: generic
  • Submitted: 1999-03-11
  • Updated: 2000-01-06
  • Resolved: 2000-01-06
Related Reports
Duplicate :  
Description
In addition to our needs for headless support, we'd also like to have
a JDK Permission to control the ability to show a window on the screen
(as opposed to showing a window on a printer).  For some components of
the Java 2 Platform, Enterprise Edition, it is inappropriate for them to
even attempt to display a window.  The much requested headless support
would cause such a display attempt to be displayed "in memory", but what
we really want is the ability to block such an attempt entirely.

Comments
SUGGESTED FIX We suggest a new AWTPermission "showWindow" (related to "showWindowWithoutWarningBanner") that controls the ability to show a window at all. Presumably Window.show would throw an appropriate SecurityException. Obviously an applet would have this permission by default, but servlets and EJBs (for instance) would not.
11-06-2004

EVALUATION This bug does not meet the current criteria for fixing in cricket after code freeze. Committing to kestrel. david.mendenhall@eng 1999-03-11 We don't have the resources to fix this bug. If you would like to offer a lending hand we would greatly appreciate it. lara.bunni@Eng 1999-05-10 This is being tracked as a part of Headless Java, or bug ID 4281163. Depending on how Headless Java is implemented, this may not even be an issue. Component printing at this point still may or may not be a requirement. If not, then Component construction will alone throw an exception, preventing a window from even being created, in which case this is a non-issue. Nevertheless, I am closing this out as a DUP of 4281163. michael.martak@Eng 2000-01-06
06-01-2000