-
Bug
-
Resolution: Fixed
-
P2
-
6u2
-
b16
-
generic
-
windows
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2152071 | 6u10 | Calvin Cheung | P2 | Closed | Fixed | b02 |
Build Tried : Promoted 6u2 JRE build
OS : Windows XP
Problem:
While doing a direct call to some Java APIs on mozilla/firefox e.g. System.getProperty("user.home") security exception "java.security.AccessControlException: access denied" will get thrown, which is a right behavior. But problem is that after this exception is getting thrown mozilla/firefox won't be able to run anything else. Moreover like other java exception e.g. NullPointerExpcetion user is not able to catch this exception using try ..catch inside the javascript.
Steps to reproduce:
------------------
1) Try to load following page inside the mozilla or firefox browser http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_UR_int_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/DirectAPICall.html
2) Run any of the test which is not supposed to throw the security exception e.g "Basic Test" or "Simple Swing Test". In case of Basic test following should get printed on the Java console :
Calling Standard Java O/P stream From Javascript directly
Calling Standard Java Error stream From Javascript directly
Java date Object: Thu May 24 18:26:04 PDT 2007
Thu May 24 18:26:04 PDT 2007 comes after Wed Dec 31 16:04:27 PST 1969 : true
Thu May 24 18:26:04 PDT 2007 comes before Wed Dec 31 16:04:27 PST 1969 : false
The answer is NaN
In case of "Simple Swing Test", two dialog pop-ups should be there. Close the dialogs.
3) Run any test which is supposed to throw Security exception from this page. Security exception should get thrown.
4) Try to run the tests in #2 again. If you are not able to run them then the bug is reproduced.
OS : Windows XP
Problem:
While doing a direct call to some Java APIs on mozilla/firefox e.g. System.getProperty("user.home") security exception "java.security.AccessControlException: access denied" will get thrown, which is a right behavior. But problem is that after this exception is getting thrown mozilla/firefox won't be able to run anything else. Moreover like other java exception e.g. NullPointerExpcetion user is not able to catch this exception using try ..catch inside the javascript.
Steps to reproduce:
------------------
1) Try to load following page inside the mozilla or firefox browser http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_UR_int_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/DirectAPICall.html
2) Run any of the test which is not supposed to throw the security exception e.g "Basic Test" or "Simple Swing Test". In case of Basic test following should get printed on the Java console :
Calling Standard Java O/P stream From Javascript directly
Calling Standard Java Error stream From Javascript directly
Java date Object: Thu May 24 18:26:04 PDT 2007
Thu May 24 18:26:04 PDT 2007 comes after Wed Dec 31 16:04:27 PST 1969 : true
Thu May 24 18:26:04 PDT 2007 comes before Wed Dec 31 16:04:27 PST 1969 : false
The answer is NaN
In case of "Simple Swing Test", two dialog pop-ups should be there. Close the dialogs.
3) Run any test which is supposed to throw Security exception from this page. Security exception should get thrown.
4) Try to run the tests in #2 again. If you are not able to run them then the bug is reproduced.
- backported by
-
JDK-2152071 Liveconnect: Mozilla/Firefox stop responding once AccessControlException exception is thrown
-
- Closed
-