JDK-6909883 : 6u18: Rountrip scenarios recursive js calls i.e. java > js> java > js are not working
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u18
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows,windows_xp
  • CPU: generic,x86
  • Submitted: 2009-12-11
  • Updated: 2010-09-08
  • Resolved: 2010-06-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u21 b02Fixed
Related Reports
Duplicate :  
Relates :  
Description
Most of the roundtrip scenarios i.e. Java > Js  > Java fails to work with new Plug-in but it's working fine with old plug-in.
1) It fails to work when called within the start() or init() method of an applet. It works fine once applet is started 
2) This regression got introduced in 6u18-b03

Steps to reproduce:
--------------------
1)Try to load any of the following applet
if TEST PASSED is not getting printed on the Java console then bug is reproduced
http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_exec_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/auto/JSObjectSetMemberCrash.html
http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_exec_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/auto/JSObjectSetMember.html
http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_exec_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/auto/RoundTripUserDefined.html
http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_exec_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/auto/RoundTripJSWin.html
http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_exec_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/auto/RoundTripUDGetMember.html
http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_exec_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/auto/RoundTripDiffApplets.html
http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_exec_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/auto/JSObectOvrloadStr.html
http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_exec_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/auto/JSObectOvrload.html
http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_exec_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/auto/DynamicAppletTest.html
http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_exec_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/auto/RoundTripModalEDT.html
http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_exec_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/auto/TestJavaArray.html
http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_exec_ws/deployment/src/plugin/LiveConnect/LiveConnect/html/auto/JSJavaJS.html

These tests points to following inside the automated testabse which will end up as "FAILED" inside the report due to this bug:
test.case.name=SetMemberTest
test.case.name=SetMemberCrashTest
test.case.name=RoundTripUserDefTest
test.case.name=RoundTripJSWinTest
test.case.name=RoundTripUDGetMember
test.case.name=RoundTripAppletComm
test.case.name=JSObjectOvrldTest
test.case.name=JSObjectOvrldStrTest
test.case.name=DynamicAppletTest
test.case.name=RoundTripModalEDTGUI
test.case.name=ArrayDirectTest
test.case.name=JStoJavaToJ

Comments
EVALUATION A fix for 6809648 was supposed to detect if there are Javascript calls on the stack when JVM on a browser side (new plugin architecture) receives a message to push a modality. In such a case a message to push a modality was supposed to be ignored (see ModalitySupport.java). However the fix also was preventing recursive Javascript calls which was not necessary for the 6809648 fix. The fix is to allow recursive Javsscript calls as it was before 6809648 and disallow modality on top of js call.
17-02-2010