~ubuntu-branches/ubuntu/natty/icedtea-web/natty-proposed

« back to all changes in this revision

Viewing changes to netx/net/sourceforge/jnlp/SecurityDesc.java

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-11-24 13:23:28 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101124132328-2xb9z39vxga63vr9
Tags: 1.0~20101124-0ubuntu1
* Update to hg 20101124.
* Fix xulrunner dependencies for natty.
* Build-depend on pkg-config and libgtk2.0-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import java.security.*;
24
24
import java.awt.AWTPermission;
25
25
 
 
26
import net.sourceforge.jnlp.runtime.DeploymentConfiguration;
 
27
import net.sourceforge.jnlp.runtime.JNLPRuntime;
 
28
 
26
29
/**
27
30
 * The security element.
28
31
 *
67
70
        // queues, or even prevent access to security dialog queues.
68
71
        //
69
72
        // new AWTPermission("accessEventQueue"),
70
 
        new AWTPermission("showWindowWithoutWarningBanner"),
71
73
        new RuntimePermission("exitVM"),
72
74
        new RuntimePermission("loadLibrary"),
73
75
        new RuntimePermission("queuePrintJob"),
105
107
        new PropertyPermission("javaws.*", "read,write"),
106
108
        new RuntimePermission("exitVM"),
107
109
        new RuntimePermission("stopThread"),
108
 
        new AWTPermission("showWindowWithoutWarningBanner"),
109
110
        // disabled because we can't at this time prevent an
110
111
        // application from accessing other applications' event
111
112
        // queues, or even prevent access to security dialog queues.
187
188
        for (int i=0; i < sandboxPermissions.length; i++)
188
189
            permissions.add(sandboxPermissions[i]);
189
190
 
 
191
        String key = DeploymentConfiguration.KEY_SECURITY_ALLOW_HIDE_WINDOW_WARNING;
 
192
        if (Boolean.valueOf(JNLPRuntime.getConfiguration().getProperty(key)) == Boolean.TRUE) {
 
193
            permissions.add(new AWTPermission("showWindowWithoutWarningBanner"));
 
194
        }
 
195
 
190
196
        if (file.isApplication())
191
197
            for (int i=0; i < jnlpRIAPermissions.length; i++)
192
198
                permissions.add(jnlpRIAPermissions[i]);