JDK-6411322 : Exception thrown inside the destroy/stop makes browser to hang if exception property is set to true
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 5.0u7,6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_2000,windows_xp
  • CPU: generic,x86
  • Submitted: 2006-04-10
  • Updated: 2010-05-06
  • Resolved: 2006-05-22
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.
Other JDK 6
5.0u10Fixed 6 b85Fixed
Related Reports
Duplicate :  
Description
Build : build 1.6.0-b78
Build Location : /net/koori/onestop/jdk/1.6.0/latest
OS/Machines : DNM-011(winxp professional), Honkong(winxp home)

Problem description:
If property "deployment.javapi.lifecycle.exception" is set to true then the exception
thrown inside the destory or stop method of an applet hangs the browser. One is unable
to access the browser once the "Error - Java"/"Application Error" pop-up window is disposed. IE window cannot be accessed using mouse while one is able to send keyboards events to it but for mozilla and firefox one is able to send neither mouse nor keyboard events. 

Steps to reproduce:
1) Install 1.6.0 or any 1.5.0 build
2) Load the following applet inside IE, mozilla or firefox browser
http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/exceptionTest/AUEStopException.html 3) Invoke Java console
4) Try to switch the page
5) You can notice that exception is getting thrown, but you are able to access the browser using keyboard and mouse
6) Close the browser session
7) Invoke JCP > Advanced Tab and select "Show Applet lifecycle exceptions"
Click Apply and OK. Make sure that deployment.javapi.lifecycle.exception is set to true
inside the deployment.properties file
8) Repeat #2,#3,#4.
9) "Error - Java" or "Application Error", pop-up should be there. Click OK on the pop-up to dispose the error dialog window
10) If browser is not accessible via mouse(firefox and mozilla they will also not be 
accessible via keyboard), then the bug is reproduced

Comments
SUGGESTED FIX src/plugin/win32/com/iexplorer/AxControl.cpp Enable browser window if there're modal dialogs and browser has left the current page.
13-04-2006

EVALUATION When Java modal dialogs pop up, plugin will disable the browser windows to simulate the native modal dialog behavior. And plugin will enable the browser windows after dismissing the Java modal dialogs. If the modal dialogs are not dismissed while the browser window has been changed, plugin will not enable the browser window. So the browser window will not receive any operations. It could happen when browser leaves the page or applet calls showDocument().
13-04-2006