JDK-6719011 : Applet isn't started when it's outside of the visible area of a browser window
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u13
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-06-25
  • Updated: 2010-07-29
  • Resolved: 2009-05-15
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 Other JDK 6 JDK 7
5.0u17-revFixed 5.0u18Fixed 6u14 b01Fixed 7Fixed
Related Reports
Relates :  
SAP has an issue with applets where they need our (Sun's) help. The problem is that applets which are embedded into the page are not started immediately, but only when scrolled into view.                            
Attached are the test cases to reproduce the problem. The first one (test1.html) just contains the applet. As soon as the page is loaded the applet is started (status bar shows "Applet AnalogUhr started). In the second one, there is a large div above the applet, so the page gets a scrollbar and the applet is outside of the visible area of the screen. In this case the applet is started, only when the page is scrolled down.                                                                     
SAP expects to get the applet started and to be able to communicate with it if it is embedded in the page, not only if it is currently visible.         
The following preconditions have to be fulfilled in the HTML page for this problem to occur: 

At least one script and one style block must exist in the page, and either width or height of the applet must be percentual.

EVALUATION Hi all, What does this mean? Would this be fixed in a patch release or something, or are there any workarounds?? Please comment. Thanks, MS

SUGGESTED FIX http://web-east.east.sun.com/deployment/www/webrevs/ccheung/1.6.0/6719011/webrev/ The above webrev fixes the problem with the IE browser.

EVALUATION For the old java plugin, we don't call the IExplorerPluginObject.frameReady() which sets the applet "start" status if the applet's dimension is 0. If the applet isn't visible, its dimension is 0. To fix this problem in the old java plugin, we'll need to set the applet "start" status even though the applet's dimension is 0.

EVALUATION With JRE 6u10, this problem reproduces with the classic java plugin only; the new java plugin doesn't have this problem.

EVALUATION Reassigned to Plugin team.