Hi

I'm experimenting with embedding mozilla webclient in Java. I'm using
Webclient 2.0 Alpha 9 with XULrunner 1.8.13 with JDK 1.6.0_02 in
Windows XP.

I'm running the TestBrowser which comes bundles with Webclient in
Netbeans. Everything works fine except when the webpages call
Javascript code "window.open". If I click on any link which can popup,
the JVM  crashes.

example: goto http://webmd.com. Click on the "watch video" link on the
right hand side.

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0384f067, pid=4092,
tid=652
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b05 mixed mode,
sharing)
# Problematic frame:
# C  [xul.dll+0x20f067]
#
# An error report file with more information is saved as
hs_err_pid4092.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp

Looking at the org.mozilla.webclient.EventRegistration interface, I
see that the interface methods to listen to JavaScript are commented
out.

    // public void addJavaScriptListener(JavaScriptListener
containerListener);
    // public void removeJavaScriptListener(JavaScriptListener
containerListener);

So how can I listen to Javascript events? Is there anyway I can
prevent the JVM from crashing? I would appreciate any help/pointers to
fix this.

Thanks
Babu

_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to