/hg/icedtea-web: AppletEnvironment.java: getDocumentBase no retu...
jvanek at icedtea.classpath.org
jvanek at icedtea.classpath.org
Mon May 14 15:12:31 UTC 2018
changeset b64b383a4561 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=b64b383a4561
author: Jiri Vanek <jvanek at redhat.com>
date: Mon May 14 17:11:41 2018 +0200
AppletEnvironment.java: getDocumentBase no returns codeBase as fallback when documentBase is null.
Oracle Applications R12, Oracle Forms Java Webstart application is requesting getDocumentBase where it shouldn't, however they refuse to modify their code and add ITW to supported platforms
diffstat:
ChangeLog | 6 ++++++
netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java | 8 ++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 232107653932 -r b64b383a4561 ChangeLog
--- a/ChangeLog Thu Mar 22 15:27:55 2018 +0100
+++ b/ChangeLog Mon May 14 17:11:41 2018 +0200
@@ -1,3 +1,9 @@
+2018-05-14 Jiri Vanek <jvanek at redhat.com>
+
+ * netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java: getDocumentBase no returns codeBase as fallback when
+ documentBase is null. Oracle Applications R12, Oracle Forms Java Webstart application is requesting getDocumentBase
+ where it shouldn't, however they refuse to modify their code and add ITW to supported platforms
+
2018-02-15 Jiri Vanek <jvanek at redhat.com>
Build of rust lunchers moved to cargo
diff -r 232107653932 -r b64b383a4561 netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java
--- a/netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java Thu Mar 22 15:27:55 2018 +0100
+++ b/netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java Mon May 14 17:11:41 2018 +0200
@@ -375,8 +375,12 @@
@Override
public URL getDocumentBase() {
checkDestroyed();
-
- return file.getApplet().getDocumentBase();
+ URL db = file.getApplet().getDocumentBase();
+ if (db == null) {
+ return getCodeBase();
+ } else {
+ return db;
+ }
}
// FIXME: Sun's applet code forces all parameters to lower case.
More information about the distro-pkg-dev
mailing list