[icedtea-web][rfc] Fix for PR588, storing java cookie jar cookies in browser

Adam Domurad adomurad at redhat.com
Thu Jul 26 12:44:26 PDT 2012


Java has an internal cookie store that should be synchronized with the
browser cookies. This fix ensures that whenever PluginCookieManager's
set method is called the cookies are written through to the browser's
cookies. 

A slight refactoring is included in breaking up consume_message to call
a method consume_plugin_message, I felt this was necessary to prevent
the method from getting too long and keeping it understandable.

ChangeLog:
2012-07-26  Adam Domurad  <adomurad at redhat.com>

	Fixes PR588, cookies set in the java cookie jar are now stored properly
	* plugin/icedteanp/IcedTeaNPPlugin.cc
	(set_cookie_info): New, uses setvalueforurl
	(consume_plugin_message): New, called by consume_message, handles
	cookie and proxy info retrieval, and setting cookie info
	(consume_message): Calls consume_plugin_message for "plugin ..."
	messages
	* plugin/icedteanp/java/sun/applet/PluginCookieManager.java: Now
	overrides put method, results in set_cookie_info calls in C++
	* plugin/icedteanp/java/sun/applet/PluginMain.java: Passes
	PluginStreamHandler to PluginCookieManager to allow C++ side
	communication
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cookies2.patch
Type: text/x-patch
Size: 9853 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120726/46d7f1f6/cookies2.patch 


More information about the distro-pkg-dev mailing list