--- old/./test/java/awt/Insets/WindowWithWarningTest/WindowWithWarningTest.html 2010-12-01 13:52:13.000000000 +0100 +++ new/./test/java/awt/Insets/WindowWithWarningTest/WindowWithWarningTest.html 2010-12-01 13:52:13.000000000 +0100 @@ -4,7 +4,7 @@ @bug 6391770 @summary Content of the Window should be laid out in the area left after WarningWindow was added. @author Yuri Nesterenko - @run applet WindowWithWarningTest.html + @run applet/othervm/policy=applet.policy WindowWithWarningTest.html --> --- old/./test/java/awt/Insets/WindowWithWarningTest/WindowWithWarningTest.java 2010-12-01 13:52:14.000000000 +0100 +++ new/./test/java/awt/Insets/WindowWithWarningTest/WindowWithWarningTest.java 2010-12-01 13:52:14.000000000 +0100 @@ -91,12 +91,6 @@ public void start () { //Get things going. Request focus, set size, et cetera - System.setSecurityManager( new SecurityManager() { - // deny AWTPermission("showWindowWithoutWarningBanner") - public boolean checkTopLevelWindow(Object window) { - return false; - } - }); JFrame frame = new JFrame("Window Test"); frame.setBounds(50, 50, 200, 200); frame.show(); --- /dev/null 2010-06-29 10:52:54.337250608 +0200 +++ new/./test/java/awt/Insets/WindowWithWarningTest/applet.policy 2010-12-01 13:52:14.000000000 +0100 @@ -0,0 +1,13 @@ + +// Standard extensions get all permissions by default + +grant codeBase "file:${{java.ext.dirs}}/*" { + permission java.security.AllPermission; +}; + +// default permissions granted to all domains + +grant { + permission java.awt.AWTPermission "createRobot", "enabled"; +}; +