diff options
author | Deepak Bhole <[email protected]> | 2011-03-04 17:34:32 -0500 |
---|---|---|
committer | Deepak Bhole <[email protected]> | 2011-03-04 17:34:32 -0500 |
commit | 0b38becc8ddeb3026d5fa0ca89713cb3e38ac430 (patch) | |
tree | b73cf798610230ad338b43b6865766f840aa1279 /netx/net/sourceforge/jnlp/PluginBridge.java | |
parent | eb116d00b1dfee2df7b1dc6191d388a4b0f4b846 (diff) |
- PR475, RH604061: Allow applets from the same page to use the same classloader
Diffstat (limited to 'netx/net/sourceforge/jnlp/PluginBridge.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/PluginBridge.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/netx/net/sourceforge/jnlp/PluginBridge.java b/netx/net/sourceforge/jnlp/PluginBridge.java index 2cb5146..a3ef9f3 100644 --- a/netx/net/sourceforge/jnlp/PluginBridge.java +++ b/netx/net/sourceforge/jnlp/PluginBridge.java @@ -130,9 +130,10 @@ public class PluginBridge extends JNLPFile { else security = null; - this.uniqueKey = Calendar.getInstance().getTimeInMillis() + "-" + - Math.abs(((new java.util.Random()).nextInt())) + "-" + - documentBase; + // Plugin needs to share classloaders so that applet instances from + // same page can communicate (there are applets known to require + // such communication for proper functionality) + this.uniqueKey = documentBase.toString(); } public String getTitle() { |