[rfc][icedtea-web] PR1271, Handle 'javascript:' urls, with tests

Adam Domurad adomurad at redhat.com
Tue Aug 6 12:51:08 PDT 2013


This fixes this bug 
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1271

Note the test case sometimes fails if the fix from '[rfc][icedtea-web] 
Fix NPE on Applet launch due to missing AppletStub' is not applied.

ChangeLog:

2013-XX-XX  Adam Domurad  <adomurad at redhat.com>
         * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: 
Evaluate
         javascript when it shows up in a 'showDocument' call.
         * plugin/icedteanp/java/sun/applet/PluginMain.java: Install 
arbitrary
         'javascript:' protocol handler.
         * 
tests/rproducers/simple/JavascriptURLProtocol/resources/JavascriptProtocol.html:
         Tests if javascript is run from a test applet using showDocument.
         * 
tests/reproducers/simple/JavascriptURLProtocol/resources/JavascriptProtocol.js:
         Same.
         * 
tests/reproducers/simple/JavascriptURLProtocol/srcs/JavascriptProtocol.java:
         Same.
         * 
tests/reproducers/simple/JavascriptURLProtocol/testcases/JavascriptProtocolTest.java:
         Same.

Cheers,
-Adam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JavascriptURLProtocol.patch
Type: text/x-patch
Size: 11220 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20130806/206e6100/JavascriptURLProtocol.patch 


More information about the distro-pkg-dev mailing list