aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Removed depndence on sun.misc.BASE64DecoderJiri Vanek2014-01-067-13/+531
|
* Added ChangeLog revision hyperlinking to html-gen.shAndrew Azores2014-01-022-8/+32
|
* Fix classloading deadlock regressionAndrew Azores2013-12-272-75/+125
| | | | | | | | | | Resolve deadlock issue in JNLPClassLoader. See http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-December/025546.html * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (loadClassLock) removed. (available, jarIndexes, classpaths, jarEntries, jarLocationSecurityMap) fields wrapped in Collections.synchronized*() to provide atomic read/write. Synchronized on while iterating over these collections. (loadClass) no longer uses implicit JNLPClassLoader instance lock nor dedicated loadClassLock object.
* Rewritten java consoleJiri Vanek2013-12-2010-78/+1483
|
* Minor formatting fixJiri Vanek2013-12-201-2/+2
|
* fixed CacheLRUWrapperTestJiri Vanek2013-12-203-16/+51
|
* finished removal of legacy xulrunner apiJiri Vanek2013-12-203-21/+6
|
* singletons logic, logs and test cleanup/fixesJiri Vanek2013-12-209-154/+221
|
* JNLPRuntime.config changed to proper singleton.Jiri Vanek2013-12-185-37/+53
|
* Console made aware of plugin messagesJiri Vanek2013-12-1517-91/+916
|
* Made again compatible with JDK6.All JLists, JComboBoxs, and ↵Jiri Vanek2013-12-137-17/+28
| | | | | | DefaultComboBoxModels moved back to be not generics-like in netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java, netx/net/sourceforge/jnlp/controlpanel/DebuggingPanel.java, netx/net/sourceforge/jnlp/controlpanel/DesktopShortcutPanel.java, netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java, netx/net/sourceforge/jnlp/controlpanel/UnsignedAppletsTrustingListPanel.java, netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java
* itw itself warning cleanup: fixed rawtypes and unchecks, added braces and ↵Jiri Vanek2013-12-1333-286/+510
| | | | | | | | | | | | | | | | | | | | | Override After this clean up only "internal proprietary API and may be removed in a future release" warnings remain fro make check. Please keep itw in this way :) remaining issues: icedtea-web/netx/net/sourceforge/jnlp/cache/ResourceTracker.java:357: warning: [deprecation] toURL() in File has been deprecated icedtea-web/netx/net/sourceforge/jnlp/cache/CacheUtil.java:128: warning: [deprecation] toURL() in File has been deprecated icedtea-web/netx/net/sourceforge/jnlp/runtime/Boot.java:261: warning: [deprecation] toURL() in File has been deprecated There have been a lot of work around cach x file x url escaping, and as main difference between file.tourl and file.touri.tourl is escapin, I rather left it. icedtea-web/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java:804: warning: [deprecation] Ref in sun.misc has been deprecated icedtea-web/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java:121: warning: [deprecation] Ref in sun.misc has been deprecated What can be done? icedtea-web/netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java:205: warning: [fallthrough] possible fall-through into case icedtea-web/netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java:211: warning: [fallthrough] possible fall-through into case This have to be fixed
* unittests warning cleanup: fixed typechecks, rawtypes, redundant casts...Jiri Vanek2013-12-1320-86/+120
| | | | | ScreenFinder fixed to work partially also in headless mode. After this clean up only "internal proprietary API and may be removed in a future release" warnings remain fro make check. Please keep itw in this way :)
* Messages.properties: added "It will be granted unrestricted access to your ↵Jiri Vanek2013-12-092-3/+8
| | | | computer." to (SSigUnverified) (SSigVerified) (SSignatureError) messages.
* Add units to cache size label in itweb-settingsAndrew Azores2013-12-052-1/+6
| | | | PR1604 - no units shown for cache size label in TemporaryInternetFilesPanel
* Tests for PR1592Andrew Azores2013-12-0311-0/+835
|
* Implement per-JAR security descriptors (PR1592)Andrew Azores2013-12-033-48/+102
| | | | | | Fix/new feature for PR1592. Each JAR in partially signed applets is assigned its own security level, rather than forcing the entire applet to run sandboxed.
* Better validation of crytical dirs with proper message on startupJiri Vanek2013-12-028-17/+697
|
* Updated NEWSJiri Vanek2013-11-291-0/+2
|
* Pipes moved into XDG_RUNTIME_DIRJiri Vanek2013-11-294-17/+44
|
* Enabled file logging in plugin, user enabled to choose logs dirJiri Vanek2013-11-2912-68/+353
|
* JNLPClassLoaderDeadlock reproducer made more reliableAndrew Azores2013-11-274-4/+15
|
* Reverted "fix to ManifestedJar1Test cases", better manifestedjar tests, ↵Jiri Vanek2013-11-274-20/+44
| | | | | | | | added srtict test * netx/net/sourceforge/jnlp/Parser.java: added indentation, fixes condition in strict base check * netx/net/sourceforge/jnlp/ResourcesDesc.java: revertedt recently added throw * tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java: (manifestedJar1main2mainNoAppDesc) adapted and (manifestedJar1main2mainNoAppDescStrict) added
* removed redundant slash in chnagelogJiri Vanek2013-11-271-1/+1
|
* Added null check when getting manifest attributes for case of jar without ↵Jiri Vanek2013-11-274-4/+64
| | | | | | | | manifest * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (getManifestAttribute) added check fo null manifest to prevent npe. * /tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java: added test for npe from getManifestAttribute * tests/test-extensions/net/sourceforge/jnlp/util/FileTestUtils.java: (createJarWithContents) enhanced to be able to create jar without manifest.
* Removed most of checks to no output from reproducersJiri Vanek2013-11-2515-33/+59
|
* fix to ManifestedJar1Test casesJiri Vanek2013-11-253-5/+22
| | | | | * netx/net/sourceforge/jnlp/ResourcesDesc.java: (getMainJAR) throw an RuntimeException when more then one main jar is specified. Preventing app to start. * tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java:(manifestedJar1main2mainNoAppDesc), (manifestedJar1nothing2nothingAppDesc)fixed and adapted to change.
* do DefaultLaunchHandlerTest unittest indepndent on system settingsJiri Vanek2013-11-222-0/+14
|
* Move "dialog center" line in NEWS to be consistent with NEWS in 1.4Andrew Azores2013-11-141-1/+1
|
* Added "dialogs center on-screen before appearing" to NEWSAndrew Azores2013-11-141-0/+1
|
* Fixed NPE in getting the attributeJiri Vanek2013-11-141-0/+4
|
* JNLPClassLoader cleanup, avoid Enumerations and use strict typing.Andrew Azores2013-11-132-77/+61
| | | | | | Iteration over Enumerations refactored to instead view Enumerations as Lists using Collections library. Type parameters added to some local variables and return types. For-loops refactored into for-each-loops.
* BasicExceptionDialog centers on-screen before appearingAndrew Azores2013-11-132-1/+6
|
* Added test-extension to silence stdout/err of itw when run from junitJiri Vanek2013-11-135-9/+105
|
* Enabled access to manifests' attributes from JNLPFile class, implemented ↵Jiri Vanek2013-11-1310-31/+476
| | | | http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#app_name
* Fixed lock in awt threads. JavaConsole window is now disposed instead of hidden.Jiri Vanek2013-11-103-21/+65
|
* Removed suspicious return when (searchForMain) had null launchDesc in ↵Jiri Vanek2013-11-102-4/+7
| | | | netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java.
* Reproducer test cleanup to remove deprecation warnings and type checking ↵Andrew Azores2013-11-0743-182/+212
| | | | | | | | | warnings. ServerAccess.ProcessResult removed and reference replaced with ProcessResult. junit.framework.assert replaced in favour of org.junit.Assert. Added parameterized typing to instantiation of several fields and local variables where the declaration was already parameterized.
* Java console resurrected and connected to new logging.Jiri Vanek2013-11-0515-164/+333
|
* Avoid potential NPE in JNLPSecurityManager#addPermission when debug is enabledAndrew Azores2013-11-052-3/+13
| | | | | | * netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java: (addPermission) avoid NPE in JNLPClassLoader#getPermissions with debug enabled
* Synced headers between PLUGIN_DEBUG, PLUGIN_ERROR and javasideJiri Vanek2013-11-013-35/+51
| | | | | * netx/net/sourceforge/jnlp/util/logging/OutputController.java: (getHeader) added thread id and name to log header. * plugin/icedteanp/IcedTeaPluginUtils.h: (PLUGIN_DEBUG) (PLUGIN_ERROR) headerrs generation code moved to macro (CREATE_HEADER0). Both headers now contains pthread_self and g_thread_self. Fixed indentation.
* tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java: ↵Jiri Vanek2013-11-013-16/+172
| | | | | | added tests for custom attributes (getCustomAtributes), (getCustomAtributesEmpty) and test to ensure order during searching for attributes in manifests (checkOrderWhenReadingAttributes). tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java: can now handle multiple source jars, and set main jar (new constructors), (jarFiles) and (jarDescs) redeclared to arrays.
* netx/net/sourceforge/jnlp/JARDesc.java: made immutableJiri Vanek2013-10-302-7/+13
| | | | (location)(version)(part)(lazy)(main)(nativeJar)(cacheable) made final
* Fix PR1513, signed applets with external main-class supportAndrew Azores2013-10-292-15/+15
| | | | | | * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (initializeResources) ask for user approval rather than throwing LaunchException for signed applets with external main-class
* Plugin debug can now be controlled from itw_settings, in same way java side. ↵Jiri Vanek2013-10-257-21/+164
| | | | | | | | | | For now ICEDTEAPLUGIN_DEBUG on the debug in same way as deployment.log itw-settings property. Individual logging streams are controlled by deployment.log.{headers,file,stdstreams,system} System and file are not yet fully done (same as java side in this moment). Streams are true, all others false by default. * plugin/icedteanp/IcedTeaNPPlugin.cc: initialized variables new bool variables (debug_initiated), (plugin_debug_headers), (plugin_debug_to_file), (plugin_debug_to_system) as false and (plugin_debug_to_streams) as true. * plugin/icedteanp/IcedTeaNPPlugin.h: above variables declared as extern * plugin/icedteanp/IcedTeaParseProperties.cc: initialization of (default_file_ITW_deploy_props_name) and (custom_jre_key) moved here from IcedTeaNPPlugin.h. New method (read_bool_property) and its more concrete shortcuts (is_debug_on) (is_debug_header_on) (is_logging_to_file) (is_logging_to_stds) (is_logging_to_system) implemented to access properties. * plugin/icedteanp/IcedTeaParseProperties.h: above methods declared. * plugin/icedteanp/IcedTeaPluginUtils.h: (PLUGIN_{ERROR,DEBUG}) methods adapted headers/debug/streams logic as described in title. Headers made more informative (like java side) * tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc: TEST(PLUGIN_DEBUG_ERROR_PROFILING_debug_on) extended to TEST(PLUGIN_DEBUG_ERROR_PROFILING_debug_on_headers_off).TEST(PLUGIN_DEBUG_ERROR_PROFILING_debug_off) extended to TEST(PLUGIN_DEBUG_ERROR_PROFILING_debug_off_headers_off), and new testsTEST(PLUGIN_DEBUG_ERROR_PROFILING_debug_on_headers_on) TEST(PLUGIN_DEBUG_ERROR_PROFILING_debug_off_headers_on) (100x slower then without headers)
* All output messages redirected to PLUGIN_{DEBUG,ERROR} macrosJiri Vanek2013-10-259-46/+123
|
* OutputController.getCallerClass now gets out also from ↵Jiri Vanek2013-10-252-1/+8
| | | | sun.applet.PluginDebug class.
* Fix array index out of bounds due to malformed plugin message (PR539)Andrew Azores2013-10-246-1/+129
| | | | | | | | | | | | | | | | | Failed calls to getString and getMember on JSObjects should not produce malformed result strings. "null" is appended to result rather than empty string. * plugin/icedteanp/IcedTeaPluginRequestProcessor.cc: (_getMember, _getString) append "null" to result when call is unsuccessful * tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.html: new test to ensure failed calls to getMember and getString on JSObject do not produce malformed results * tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.js: same * tests/reproducers/simple/JSObjectWithoutToString/srcs/JSObjectWithoutToString.java: same * tests/reproducers/simple/JSObjectWithoutToString/testcases/JSObjectWithoutToStringTest.java: same
* C-part of plugin is now also trying to follow XDGJiri Vanek2013-10-232-1/+21
| | | | * plugin/icedteanp/IcedTeaParseProperties.cc: (user_properties_file) is now using XDG cached dir or its default variant in case that old file do not (should not!) exists
* Reset the LogConfig in unit testsOmair Majid2013-10-223-0/+26
| | | | | | | | | | | | | | | | | | LogConfig is globally shared. Fix unit tests that modify the logging configuration to reset it after (and before) to avoid affecting other unit tests or being affected by the results of other tests. Before this patch, if the tests were executed in a certain order, it was possible for them to leave behind a LogConfig that enabled logging in the most verbose manner possible. This would generate megabytes of output when running unit tests. 2013-10-22 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/util/logging/LogConfig.java (resetLogConfig): New method. * tests/netx/unit/net/sourceforge/jnlp/util/logging/OutputControllerTest.java (setUp, tearDown): New method.