File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Interesting security issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Interesting security issue" Watch "Interesting security issue" New topic

Interesting security issue

David Treves

Joined: Nov 21, 2001
Posts: 3
I am working on a web application, the HTML page that the user sees contains two frames upper frame (containing the applet) and the lower frame.
When the user clicks some button in the applet I want the applet to get the site address that the lower frame displays. This raises a security issue.
In order to avoid the problem I tried to invoke JavaScript function to do it, but I found that JavaScript is restricted to access the location of another frame (unless both frames are under the same domain name, again, security issues).
How do you think I can over come that restriction? Will a signed applet do the trick? If so, how do I do it from a signed applet?
Can a signed applet access the instance of the window containing it? If so, how?

Thanks for your time!
I agree. Here's the link:
subject: Interesting security issue
It's not a secret anymore!