aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
Commit message (Collapse)AuthorAgeFilesLines
* Pipes moved into XDG_RUNTIME_DIRJiri Vanek2013-11-293-17/+33
|
* Enabled file logging in plugin, user enabled to choose logs dirJiri Vanek2013-11-297-63/+235
|
* Java console resurrected and connected to new logging.Jiri Vanek2013-11-054-395/+26
|
* Synced headers between PLUGIN_DEBUG, PLUGIN_ERROR and javasideJiri Vanek2013-11-011-35/+38
| | | | | * 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.
* Plugin debug can now be controlled from itw_settings, in same way java side. ↵Jiri Vanek2013-10-255-19/+106
| | | | | | | | | | 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-257-46/+46
|
* Fix array index out of bounds due to malformed plugin message (PR539)Andrew Azores2013-10-241-1/+6
| | | | | | | | | | | | | | | | | 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-1/+14
| | | | * 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
* More synchronized error/debug methodsJiri Vanek2013-10-222-36/+32
| | | | | * 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).
* Minor fix in DEBUG initialisationJiri Vanek2013-10-201-1/+1
| | | | | * 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-175-328/+145
| | | | | | | | | | | 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
* Remove duplicate key computation in proxy codeOmair Majid2013-10-091-3/+7
|
* Move some proxy logic to BrowserAwareProxySelectorOmair Majid2013-10-092-31/+39
| | | | | | 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.
* Add unit tests for PluginProxySelectorOmair Majid2013-10-011-1/+6
| | | | | | 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-11/+17
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Introduced logging bottleneckJiri Vanek2013-09-2513-70/+82
|
* Unit tests for JNLPProxySelectorOmair Majid2013-09-232-1/+6
| | | | | | | | | | 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".
* CVE-2012-4540, RH869040: Heap-based buffer overflow after triggering event ↵Jiri Vanek2013-09-161-15/+3
| | | | attached to applet
* Do not wait for applet initialization when binding Java applets for NPAPI.Adam Domurad2013-08-275-145/+328
|
* Spawn Java side during C++ unit tests. Many new tests.Adam Domurad2013-08-233-64/+70
|
* Refactor plugin data creation.Adam Domurad2013-08-232-80/+59
|
* Fix PR1271: icedtea-web does not handle javascript:-protocol URLsAdam Domurad2013-08-192-6/+33
|
* Fix many memory leaks due to utf8fromidentifier misuseAdam Domurad2013-07-306-127/+125
|
* IcedTea-Web is now following XDG .config and .cache specification(RH947647)Jiri Vanek2013-07-181-1/+1
|
* Fix potential NPE on GetValue messageAdam Domurad2013-06-281-1/+2
|
* JNLP file is now re-downloading only if is local and have href. Real couse ↵Jiri Vanek2013-06-241-0/+0
| | | | of PR1473
* IcedTeaScriptableJavaObject simplificationsAdam Domurad2013-06-212-170/+94
|
* Move 'get_scriptable_java_package_object' and 'get_scriptable_java_object' ↵Adam Domurad2013-06-214-21/+22
| | | | into their correct respective classes.
* Fix memory leak due to allocated NPClassAdam Domurad2013-06-211-45/+51
|
* More unit tests for scriptable object creation, destructionAdam Domurad2013-06-212-2/+28
|
* Made it work with OpenJDK build 25 by creating application as soon as possibleJiri Vanek2013-06-201-0/+5
|
* Silenced deployment.properties and zero size applet exceptions with testsJiri Vanek2013-06-061-1/+3
|
* Remove unused IcedTeaRunnable.h & IcedTeaRunnable.ccAdam Domurad2013-06-042-177/+0
|
* Handle resizing plugin message more robustly by not blocking worker threadAdam Domurad2013-06-031-37/+46
|
* Fixed possible deadlock for applet->js->applet call with testcaseJiri Vanek2013-05-201-12/+23
|
* Fix PR854: Resizing an applet several times causes 100% CPU loadAdam Domurad2013-05-171-12/+1
|
* Ensure that PluginAppletViewer is resized in case of error.Adam Domurad2013-05-022-37/+32
|
* Remove only occurence of LEGACY_XULRUNNERAPIAdam Domurad2013-05-021-5/+1
|
* MethodOverloadResolve array casting testsAdam Domurad2013-05-021-0/+4
|
* Remove incorrect undummied code in MethodOverloadResolverAdam Domurad2013-05-021-12/+3
|
* Fix a dead-lock bug that can cause Firefox to hang.Adam Domurad2013-04-251-26/+4
|
* Tests & test extensions for mocking the plugin input & output pipes.Adam Domurad2013-04-251-2/+1
|
* Remove unnecessary line that can result in NPEAdam Domurad2013-04-241-2/+0
|
* Ensure document-base is properly encodedAdam Domurad2013-04-231-2/+1
|
* Clean-up of dead & outdated parts of NetxPanelAdam Domurad2013-04-231-1/+1
|
* Rewrite of MethodOverloadResolverAdam Domurad2013-04-232-602/+373
|
* removed java call to obtain jvm args for pluginJiri Vanek2013-04-171-37/+5
| | | | | | * /plugin/icedteanp/IcedTeaNPPlugin.cc: (get_jvm_args) Java call replaced by call to recently added read_deploy_property_value function.
* Remove legacy support for the old version of NPAPIAdam Domurad2013-04-118-273/+3
|
* Plugin is now honoring the custom jreJiri Vanek2013-04-041-4/+24
|
* Don't interrupt message handling threadsAdam Domurad2013-03-282-23/+37
|