[rfc][icedtea-web] Reproducer for PR1198: JSObject#eval creates invalid JS object

Jiri Vanek jvanek at redhat.com
Mon Nov 12 04:10:27 PST 2012

On 11/09/2012 08:26 PM, Adam Domurad wrote:
> Reproduces http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1198.
> When calling:
>                      JSObject win = JSObject.getWindow(applet);
>                      JSObject js = (JSObject) win.eval("new Object();")
> 'js' should be a valid JSObject, but due to this bug it is not possible to set or query its members.
> (JSObject encapsulates an ID passed from the C++ side of things, still looking into cause of bug).
> 2012-11-09  Adam Domurad  <adomurad at redhat.com>
>      Reproducer for PR1198, JSObject#eval creates invalid JS object.
>      * tests/reproducers/simple/JSObjectFromEval/resources/JSObjectFromEval.html:
>      Loads applet + JS for test
>      * tests/reproducers/simple/JSObjectFromEval/resources/JSObjectFromEval.js:
>      Calls java code to test JSObject#eval
>      * tests/reproducers/simple/JSObjectFromEval/srcs/JSObjectFromEval.java:
>      Provides java<->JS wrappers for JSObject methods
>      * tests/reproducers/simple/JSObjectFromEval/testcases/JSObjectFromEvalTest.java:
>      Tests if JSObject#eval creates valid JSObject.

Ok from my side.
I would probably change Browser.all to Browser.one, but it is up to you.

Thanx for reproducer. J.

More information about the distro-pkg-dev mailing list