aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
* OutputController.getCallerClass now gets out also from ↵Jiri Vanek2013-10-251-0/+5
| | | | sun.applet.PluginDebug class.
* Fix array index out of bounds due to malformed plugin message (PR539)Andrew Azores2013-10-241-0/+15
| | | | | | | | | | | | | | | | | 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-231-0/+7
| | | | * 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-221-0/+7
| | | | | | | | | | | | | | | | | | 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.
* More synchronized error/debug methodsJiri Vanek2013-10-221-0/+11
| | | | | * plugin/icedteanp/IcedTeaNPPlugin.cc: all occurrences of PLUGIN_ERROR_TWO and PLUGIN_ERROR_THREE replaced by PLUGIN_ERROR. PLUGIN_ERROR itself moved to * plugin/icedteanp/IcedTeaPluginUtils.h: (PLUGIN_ERROR) new fuction, now uses ... arguments and printf with __VA_ARGS__ instead of g_printerr (PLUGIN_DEBUG) now prints to stdout, instead of stderr which is used by (PLUGIN_ERROR).
* Logic to extract main class attribute generalized to common methods.Jiri Vanek2013-10-211-0/+12
| | | | | | | | | | * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (getMainClassName) is now calling (getManifestAttribute) (getManifestAttribute) new method, extract named attribute from url specified jar. Called by (checkForAttributeInJars) (checkForMain) is now calling (checkForAttributeInJars). Also logic of (checkForAttributeInJars) was taken from here. (checkForAttributeInJars) new method, read specific attribute from
* Minor fix in DEBUG initialisationJiri Vanek2013-10-201-0/+7
| | | | | * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: (isPluginDebug) made private to prevent confusion. * plugin/icedteanp/java/sun/applet/PluginDebug.java: (DEBUG) initialized from JNLPRuntime.isDebug instead of incorrect JNLPRuntime.isPluginDebug.
* Back out changeset 420d72e5cee7Andrew Azores2013-10-171-0/+11
| | | | | | | | | | | Back out changeset 420d72e5cee7 due to breaking LiveConnect feature. http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-October/024919.html * plugin/icedteanp/IcedTeaNPPlugin.cc: undo 420d72e5cee7 * plugin/icedteanp/IcedTeaPluginUtils.cc: undo 420d72e5cee7 * plugin/icedteanp/IcedTeaPluginUtils.h: undo 420d72e5cee7 * plugin/icedteanp/IcedTeaScriptablePluginObject.cc: undo 420d72e5cee7 * plugin/icedteanp/IcedTeaScriptablePluginObject.h: undo 420d72e5cee7 * tests/cpp-unit-tests/IcedTeaScriptablePluginObjectTest.cc: undo 420d72e5cee7
* Resolve multiple-applet deadlock issue in JNLPClassLoaderAndrew Azores2013-10-161-0/+18
| | | | | | | | | | | | | | | | | | | | New lock used for synchronizing JNLPClassLoader#loadClass(String) to avoid deadlock condition when multiple applets are being loaded simultaneously. Regression test included. * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (loadClassLock) private member for locking of loadClass method. (loadClass) synchronizes using new lock rather than instance intrinsic lock to avoid RH976833 deadlock * tests/reproducers/custom/JNLPClassLoaderDeadlock/testcases/JNLPClassLoaderDeadlockTest.java: new test for multiple applet deadlock condition * tests/reproducers/custom/JNLPClassLoaderDeadlock/resources/JNLPClassLoaderDeadlock.html: same * tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/JNLPClassLoaderDeadlock_1.java: same * tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/JNLPClassLoaderDeadlock_2.java: same * tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/Makefile: same
* SecurityDialog centers itself before becoming visibleAndrew Azores2013-10-111-0/+5
| | | | | * netx/net/sourceforge/jnlp/security/SecurityDialog.java: (initDialog) centerDialog called in init rather than on windowOpened event
* Remove duplicate key computation in proxy codeOmair Majid2013-10-091-0/+6
|
* Move some proxy logic to BrowserAwareProxySelectorOmair Majid2013-10-091-0/+15
| | | | | | The logic for mangling URIs to be compatible with the browser seems more appropriate to keep in the ProxySelector rather than the catch-all PluginAppletViewer.
* DeploymentConfiguration properties reproducer fixAndrew Azores2013-10-071-0/+6
| | | | Update test to reflect changed log directory
* Fix regression in ResourceUrlCreator due to PR1204 patchAndrew Azores2013-10-031-0/+10
| | | | | | | | | * netx/net/sourceforge/jnlp/cache/ResourceUrlCreator.java: (getVersionedUrl) fix regression in previous PR1204 patch. Refactor to not take Resource parameter, use instance's field instead. (uriPartToString) new method * tests/netx/unit/net/sourceforge/jnlp/cache/ResourceUrlCreatorTest.java: new tests for ResourceUrlCreator.getVersionedUrl
* * Cache viewer update:Jacob Wisor2013-10-031-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Can be closed by ESC key - Enabling and disabling of operational buttons is handled properly - Time consuming operations are indicated by a mouse busy cursor - "Size" and "Last Modified" columns display localized data * netx/net/sourceforge/jnlp/controlpanel/CachePane.java: Moved JButtons to members. (addComponents): Modified to make use of new NonEditableTableModel. Added ListSelectionListener to propertly handle enabling and disabling of operational JButtons when selecting a resource from the cache table. Moved inital populating of the cache table to CacheViewer's constructor until after the CachePane has been instatiated. Added a general purpose Comparator for all non-String columns in the table model. Added a TableCellRenderer with proper localized rendering of "Size" and "Last Modified" columns as well as the content of "Name" and "Path" columns. (createButtonPanel): Moved delete operation into new method invokeDeleteLater(), added mouse cursor busy indicator, and proper handling of enabling and disabling of operational JButtons when pushing the delete button. Moved refresh operation when pushing the refresh button into new method invokePopulateLater() and added proper handling of enabling and disabling of operational JButtons while refreshing. Replaced closing the cache viewer dialog via JDialog.dispose() when pushing the delete button by a post of the WindowEvent.WINDOW_CLOSING event to the CacheViewer dialog in order to effectively remove the newly introduced KeyEventDispatcher. (invokeDeleteLater): New method: Posts an event to the event queue deleting the currently selected resource. (invokePopulateLater): New method: Posts an event to the event queue repopulating the cache table. (populateTable): Added mouse cursor busy indicator. (generateData): Modified cache table's per row data model for proper rendering and sorting to: DirectoryNode, File, String, String, Long, Date. * netx/net/sourceforge/jnlp/controlpanel/CacheViewer.java: (CacheViewer): Added null parameter check. Added a KeyEventDispatcher to enable closing the CacheViewer dialog on a KeyEvent.VK_ESCAPE key event. Replaced closing the cache viewer dialog via JDialog.dispose() by a post of the WindowEvent.WINDOW_CLOSING event to the CacheViewer dialog in order to effectively remove the newly introduced KeyEventDispatcher. * netx/net/sourceforge/jnlp/util/ui/NonEditableTableModel.java: Added a new table model that in effect is a javax.swing.table.DefaultTableModel except for no cell being editable. * netx/net/sourceforge/jnlp/util/ui/package-info.java: Added new package for UI common and recurrung UI tasks with documentation
* Unit tests for BrowserAwareProxySelectorOmair Majid2013-10-011-0/+18
| | | | | | | Also move duplicate code for selecting a host and port depending on the protocol into JNLPProxySelector.getFromArguments. The semantics of 'sameProxy' are different between BrowserAwareProxySelector and JNLPProxySelector; the socks proxy is included in firefox.
* Add unit tests for PluginProxySelectorOmair Majid2013-10-011-0/+8
| | | | | | There are no functional changes to PluginProxySelector itself. Refactor minimial code to make it possible to unit test. Mark suspicious behaviour with a FIXME or TODO.
* Fix for PR1204, handling of query strings and absolute paths.Andrew Azores2013-09-261-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | Absolute paths in resource URLs are correctly handled when appended to host URLs and URL query strings are not removed. * netx/net/sourceforge/jnlp/cache/ResourceUrlCreator.java: (getVersionedUrlUsingQuery) renamed to getVersionedUrl, refactored construction of URL * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: (requestPluginProxyInfo) extracted proxy URI logic. (processProxyUri) new method for finding proxy URIs, handles absolute resource paths correctly * tests/netx/unit/net/sourceforge/jnlp/cache/ResourceUrlCreatorTest.java: added tests for ResourceUrlCreator#getVersionedUrl * tests/netx/unit/sun/applet/PluginAppletViewerTest.java: added tests for PluginAppletViewer.processProxyUri * tests/reproducers/simple/AbsolutePathsAndQueryStrings/resources/AbsolutePathsAndQueryStrings.html: new reproducer checks that absolute paths and query strings in resource URLs are properly handled, and caching still works * tests/reproducers/simple/AbsolutePathsAndQueryStrings/resources/AbsolutePathsAndQueryStrings.jnlp: same * tests/reproducers/simple/AbsolutePathsAndQueryStrings/testcases/AbsolutePathsAndQueryStrings.java: same
* Clean up summary_unit.txt and summary_reproducers.txt for "make clean"Andrew Azores2013-09-251-0/+5
|
* Introduced logging bottleneckJiri Vanek2013-09-251-0/+125
|
* PR1474: Can't get javaws to use SOCKS proxyOmair Majid2013-09-241-0/+13
| | | | | | | | If there is a SOCKS proxy specified, use it for https, http, and ftp protocols too (as a fallback). 'sameProxy' now affects the https, http and ftp protocols, but not the socket protocol.
* Unit tests for JNLPProxySelectorOmair Majid2013-09-231-0/+23
| | | | | | | | | | This contains one functional change: - String host = uri.getSchemeSpecificPart().split(":")[0]; + String host = uri.getHost(); Given the URI of "socket://example.org", the first line evaluates to "//example.org", while the second one (correctly) evaluates to "example.org".
* Unit test for InformationDescOmair Majid2013-09-201-0/+11
| | | | | | Also remove the references to JNLPFile from InformationDesc. This makes it much easier to instantiate InformationDesc for tests.
* adding xsl style for generating text summary after reproducers or unit tests runJana Fabrikova2013-09-191-0/+9
|
* Removed java 1.3 comaptible (redundant) code from ParseExceptionJiri Vanek2013-09-181-0/+7
| | | | netx/net/sourceforge/jnlp/ParseException.java: (ParseException) modified to support super call only, (getCause) and both (printStackTrace) removed
* Fix ResourcesTest to not assert the existence of ~/.mozilla/plugins/ directoryAndrew Azores2013-09-161-0/+8
|
* Use Arrays.asList instead of custom implementationOmair Majid2013-09-161-0/+9
| | | | | | | | | | | 2013-09-16 Omair Majid <[email protected]> * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java (toList): Remove. (checkForMainFileLeakTest): Use Arrays.asList. * tests/netx/unit/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmationTest.java (toList): Remove. (testToRelativePaths): Use Arrays.asList.
* Makefile.am: returned modified (EXTRA_DIST) variable. It is enriched for ↵Jiri Vanek2013-09-161-0/+6
| | | | netx-dist-tests-whitelist and NEW_LINE_IFS to enable reproducers tests in dist tarball
* CVE-2012-4540, RH869040: Heap-based buffer overflow after triggering event ↵Jiri Vanek2013-09-161-0/+7
| | | | attached to applet
* Added new utility class for retrieving localized messages for reproducers.Andrew Azores2013-09-131-0/+9
|
* Made temporary files location JFileChooser open at the currently specified ↵Jacob Wisor2013-09-111-0/+18
| | | | | | | | | location Made temporary files location JFileChooser display a helpful title Removed misleading "All Files" file filter from JFileChooser Added new message to resources for JFileChooser's choose button Fixed a few inconsistent messages in resource files
* PR1533: Inherit jnlp.packEnabled and jnlp.versionEnabled like other propertiesOmair Majid2013-09-091-0/+16
| | | | | | | | | | | | | | | | | | | | | | Treat jnlp.packEnabled and jnlp.versionEnabled just like other properties that can be set in one resource element and inherited/filtered in others. 2013-09-09 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/JNLPFile.java (getDownloadOptionsForJar): Rename to ... (getDownloadOptions): New method. Look up jnlp.packEnabled and jnlp.versionEnabled in any resources element. * netx/net/sourceforge/jnlp/PluginBridge.java (getDownloadOptionsForJar): Rename to ... (getDownloadOptions): New method. * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (initializeResources): Invoke file.getDownloadResources. (getDownloadOptionsForJar): Remove. * tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java (testDownloadOptionsAppliedEverywhere): New method. (testDownloadOptionsFilteredOut): New method.
* Fixed "could not clear cache" message and cache location in CacheReproducerAndrew Azores2013-09-041-0/+8
|
* mergingAndrew Azores2013-09-041-0/+33
|\
| * netx/net/sourceforge/jnlp/Launcher.java - Fix applet context being null ↵Jiri Vanek2013-09-041-0/+5
| | | | | | | | during applet init & start, by Adam Domurad <[email protected]>
| * Test case for PR1533Omair Majid2013-08-301-0/+6
| | | | | | | | | | | | | | | | | | | | | | Add a unit test that checks the behaviour of JNLPFile when combining and filtering properties. 2013-08-29 Omair Majid <[email protected]> * tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java (testPropertyRestrictions): New method. Check that properties in resources are are combined and filtered as approp
| * PR1058: XFileOpenService openMultiFileDialog ClassCastExceptionOmair Majid2013-08-301-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Instead of trying to create a privileged proxy for the FileContents[] array, simply create a privileged proxy for each FileContents instance and return an array of them. 2013-08-29 Omair Majid <[email protected]> PR1058 * netx/net/sourceforge/jnlp/services/XFileOpenService.java (openMultiFileDialog): Create a privileged proxy for each FileContents instance and return an array of them.
| * Do not wait for applet initialization when binding Java applets for NPAPI.Adam Domurad2013-08-271-0/+15
| |
* | Extracted integer response casting/handling logic in SecurityDialogs to new ↵Andrew Azores2013-09-041-0/+8
|/ | | | method, added test for this method
* Spawn Java side during C++ unit tests. Many new tests.Adam Domurad2013-08-231-0/+34
|
* Refactor plugin data creation.Adam Domurad2013-08-231-0/+5
|
* Fix PR1271: icedtea-web does not handle javascript:-protocol URLsAdam Domurad2013-08-191-0/+15
|
* Fix and tests for PR974, extension JNLPs unavailable when embedded in HTML ↵Andrew Azores2013-08-151-0/+32
| | | | applet tags
* Removed HTTP 400 BAD REQUEST as it was unneeded (test server won't be ↵Andrew Azores2013-08-131-0/+6
| | | | checking anyway)
* Refactored TinyHttpdImpl. Changed constructor, reflect this in ↵Andrew Azores2013-08-121-3/+13
| | | | ServerLauncher. Unit tests moved out of ServerAccessTest into new TinyHttpdImplTest. New unit tests added.
* ignore generated HTML files (from AboutDialog)Andrew Azores2013-08-011-0/+4
|
* Fix many memory leaks due to utf8fromidentifier misuseAdam Domurad2013-07-301-0/+14
|
* tests/reproducers/simple/simpletest1/resources/favicon.ico: new file hould ↵Jiri Vanek2013-07-301-0/+8
| | | | | | be served by test server in reproducers run and so prevent FNF exception ChangeLog: fixed few entries below (added emty line between author and body)
* Cleaned up "throws IOException" from HTMLPanel constructor and try/catches ↵Andrew Azores2013-07-251-0/+12
| | | | elsewhere which handled this
* Added java.vm.name read permission to fix Rhino evaluation of proxy PAC ↵Andrew Azores2013-07-221-0/+5
| | | | (RH982558)