aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/PluginBridge.java
diff options
context:
space:
mode:
authorDenis Lila <[email protected]>2011-04-29 16:58:05 -0400
committerDenis Lila <[email protected]>2011-04-29 16:58:05 -0400
commit56d85fafd578e28fc17211d28f4f0a701192e789 (patch)
tree163144e2f7b4a7dcf42d38e35decc0ece28a03fb /netx/net/sourceforge/jnlp/PluginBridge.java
parentd11445dcf1ad408836766709c47f47ef2aec1d31 (diff)
Fix appcontext related plugin bugs.
Diffstat (limited to 'netx/net/sourceforge/jnlp/PluginBridge.java')
-rw-r--r--netx/net/sourceforge/jnlp/PluginBridge.java32
1 files changed, 3 insertions, 29 deletions
diff --git a/netx/net/sourceforge/jnlp/PluginBridge.java b/netx/net/sourceforge/jnlp/PluginBridge.java
index cbb6be1..f4cfa1e 100644
--- a/netx/net/sourceforge/jnlp/PluginBridge.java
+++ b/netx/net/sourceforge/jnlp/PluginBridge.java
@@ -44,7 +44,8 @@ public class PluginBridge extends JNLPFile {
private boolean codeBaseLookup;
public PluginBridge(URL codebase, URL documentBase, String jar, String main,
- int width, int height, Hashtable<String, String> atts)
+ int width, int height, Hashtable<String, String> atts,
+ String uKey)
throws Exception {
specVersion = new Version("1.0");
fileVersion = new Version("1.1");
@@ -132,34 +133,7 @@ public class PluginBridge extends JNLPFile {
else
security = null;
- /* According to http://download.oracle.com/javase/6/docs/technotes/guides/deployment/deployment-guide/applet-compatibility.html,
- * classloaders are shared iff these properties match:
- * codebase, cache_archive, java_archive, archive
- *
- * To achieve this, we create the uniquekey based on those 4 values,
- * always in the same order. The initial "<NAME>=" parts ensure a
- * bad tag cannot trick the loader into getting shared with another.
- */
-
- // Firefox sometimes skips the codebase if it is default -- ".",
- // so set it that way if absent
- String codebaseAttr = atts.get("codebase") != null ?
- atts.get("codebase") : ".";
-
- String cache_archiveAttr = atts.get("cache_archive") != null ?
- atts.get("cache_archive") : "";
-
- String java_archiveAttr = atts.get("java_archive") != null ?
- atts.get("java_archive") : "";
-
- String archiveAttr = atts.get("archive") != null ?
- atts.get("archive") : "";
-
- this.uniqueKey = "codebase=" + codebaseAttr +
- "cache_archive=" + cache_archiveAttr +
- "java_archive=" + java_archiveAttr +
- "archive=" + archiveAttr;
-
+ this.uniqueKey = uKey;
usePack = false;
useVersion = false;
String jargs = atts.get("java_arguments");