aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp
Commit message (Collapse)AuthorAgeFilesLines
* ITW NPP: Pass window position through all layers, added as 'xpos' and 'ypos' ↵Sven Gothel2014-01-315-39/+158
| | | | | | | | | | | | | in message and parameters ; ... - Relative position of window maybe important in regards to overlapping applet windows as well as for an upcoming OSX support. However, client may still need to calculate the location on screen. - Applet3Panel added toString() - Applet3Panel, PluginApplet3Viewer: Better naming for browser notification - appletResize -> browserSizeChanged, etc
* Use Applet3Panel.APPLET_* for *Applet3* implementing classes.Sven Gothel2014-01-312-36/+34
|
* Experimental Applet without AWT (Applet3)Sven Gothel2014-01-3013-25/+1707
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DISCLAIMER: - Only new Applet3 applets are supported under X11 for now - AWT Applet are disabled - Namespace com.jogamp.* and jogamp.* is only chosen to indicate new AWT-less code - Applet3 code path does not invoke any AWT function - JNLP code path still utilizes AWT/Swing (UIs, ..) TODO: - Refactor AWT dependencies properly via UI interfaces ? - Decide whether we shall merge netx and plugin namespace ? IMHO the right thing to do, jumping hoops due to separation. - Add support for Windows, OSX, Wayland, .. Applet3: - New AWT-less Applet3 interfaces are: - com.jogamp.plugin.applet.Applet3 - User implements - com.jogamp.plugin.applet.Applet3Context - Plugin implements - com.jogamp.plugin.ui.NativeWindowUpstream - Plugin window, aka browser parent of Applet3 - com.jogamp.plugin.ui.NativeWindowDownstream - Applet3 user window - User interfaces are exported as: - plugin3-public.jar - plugin3-public-src.zip
* Support building against OpenJDK8Omair Majid2014-01-241-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The OpenJDK8 javadoc parser is much more strict and raises erorrs on marlformed html, incorrect parameter names and incorrect throws declerations. 2014-01-23 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/JNLPFile.java, * netx/net/sourceforge/jnlp/NetxPanel.java, * netx/net/sourceforge/jnlp/cache/CacheLRUWrapper.java, * netx/net/sourceforge/jnlp/cache/CacheUtil.java, * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java, * netx/net/sourceforge/jnlp/config/DirectoryValidator.java, * netx/net/sourceforge/jnlp/config/Setting.java, * netx/net/sourceforge/jnlp/controlpanel/AdvancedProxySettingsDialog.java, * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java, * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java, * netx/net/sourceforge/jnlp/runtime/RhinoBasedPacEvaluator.java, * netx/net/sourceforge/jnlp/security/SecurityDialogs.java, * netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java, * netx/net/sourceforge/jnlp/services/XSingleInstanceService.java, * netx/net/sourceforge/jnlp/util/FileUtils.java, * netx/net/sourceforge/jnlp/util/JarFile.java, * netx/net/sourceforge/nanoxml/XMLElement.java, * netx/net/sourceforge/nanoxml/XMLParseException.java, * plugin/icedteanp/java/sun/applet/PluginStreamHandler.java: Fix incorrect parameter names, throws declerations and malformed html in javadocs.
* Added support for system level linux loggingJiri Vanek2014-01-202-1/+14
|
* Fix liveconnect regression from commit ee92f55c69a3Andrew Azores2014-01-171-1/+1
| | | | | | http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2014-January/025764.html * plugin/icedteanp/IcedTeaScriptablePluginObject.cc: (hasMethod) fixed regression from rev 757:ee92f55c69a3
* Fixed memory leak detector to correctly handle pre_init_messages queue.Jiri Vanek2014-01-152-0/+5
|
* Console made aware of plugin messagesJiri Vanek2013-12-155-6/+245
|
* itw itself warning cleanup: fixed rawtypes and unchecks, added braces and ↵Jiri Vanek2013-12-133-105/+190
| | | | | | | | | | | | | | | | | | | | | 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
* 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
|
* 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
|