[RFC]: Patch for bug #498108
Deepak Bhole
dbhole at redhat.com
Wed May 6 11:07:53 PDT 2009
* Lillian Angel <langel at redhat.com> [2009-05-06 13:45]:
> 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.
>
Looks good to me! Assuming you have tested it, please go ahead and
commit.
Cheers,
Deepak
>
> Thanks,
> Lillian
>
>
More information about the distro-pkg-dev
mailing list