[RFC]: Patch for bug #498108

Lillian Angel langel at redhat.com
Wed May 6 10:44:32 PDT 2009


Hi,

Attached is a patch to fix 
https://bugzilla.redhat.com/show_bug.cgi?id=498108.

We need to remove the setPolicy restriction for trusted webstart 
applications, since each run in their own vm instance. Though the same 
code is used for plugins, and this restriction should still be upheld. I 
have added a parameter to JNLPRuntime.initialize to determine if a 
webstart application or a plugin applet are being initialized.


2009-05-06  Lillian Angel  <langel at redhat.com>

    Fixes bz#498108
    * rt/net/sourceforge/jnlp/NetxPanel.java
    (runLoader): Pass false to JNLPRuntime.initialize, since this is an 
applet.
    * rt/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
    (PluginAppletSecurityContext): Likewise.
     * rt/net/sourceforge/jnlp/runtime/Boot.java
    (run): Pass true to JNLPRuntime.initialize, since this is a webstart 
app.
     * rt/net/sourceforge/jnlp/runtime/JNLPRuntime.java
    (initialize): Added new parameter isApplication, which is used to set
    global static variable isWebstartApplication.
    (isWebstartApplication): New accessor function.
    * rt/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java:
    (checkPermission): Added call to JNLPRuntime.isWebstartApplication so
    check is bypassed if the permissions are to be checked for a webstart
    application.


Thanks,
Lillian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 498108.patch
Type: text/x-diff
Size: 4156 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090506/781aef4c/498108.patch 


More information about the distro-pkg-dev mailing list