[rfc][icedtea-web] Security dialogs wait for PolicyEditor to finish parsing

Andrew Azores aazores at redhat.com
Mon Mar 24 14:01:07 UTC 2014


PolicyEditor loads and saves policy files async, obviously. However, 
this means that opening a new PolicyEditor instance on an existing 
policy file and programmatically adding a new codebase to the editor 
does not have a well-defined order. This can be problematic because 
PolicyEditor highlights/selects the last added codebase, so eg in the 
scenario where the editor is being launched from a security dialog, we 
want to be sure that the current applet's codebase is the one selected 
when the editor appears. This patch adds a method to PolicyEditor that 
indicates whether the editor is currently reading/writing a file, and 
adds a loop to the two security dialogs so that the new codebase is not 
added and the editor made visible until it completes its IO.


Andrew A

-------------- next part --------------
A non-text attachment was scrubbed...
Name: policyeditor-wait-for-io.patch
Type: text/x-patch
Size: 5772 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140324/1cb50455/policyeditor-wait-for-io.patch>

More information about the distro-pkg-dev mailing list