Skip to main content

Is the a security problem or what?

No replies
mohammed_qaimari
Offline
Joined: 2005-09-22
Points: 0

A JavaScript code can access a public method exposed by an Applet. This public method starts a print job. A following previously submitted bug states that due to the fact that JavaScript code is of unknown origins, it can't start privileged actions.
Here's the bug link:

http://bugs.sun.com/view_bug.do?bug_id=5011139

Now to the code

PrintServiceLookup.lookupPrintServices(null,null) returned an array of length zero in previous releases. Now it returns results. Shouldn't it throw some security exception even in previous releases ?????!!!!!!!!!!!!
In the next generation plug-in PrintServiceLookup.lookupPrintServices() returns PrintService(s) that can be used for printing

Weird!!!!!!