United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6719011 Applet isn't started when it's outside of the visible area of a browser window
JDK-6719011 : Applet isn't started when it's outside of the visible area of a browser window

Details
Type:
Bug
Submit Date:
2008-06-25
Status:
Closed
Updated Date:
2010-07-29
Project Name:
JDK
Resolved Date:
2009-05-15
Component:
deploy
OS:
windows_xp
Sub-Component:
plugin
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u13
Fixed Versions:
6u14 (b01)

Related Reports
Backport:
Backport:
Backport:
Relates:

Sub Tasks

Description
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.

                                    

Comments
EVALUATION

Reassigned to Plugin team.
                                     
2008-06-26
EVALUATION

With JRE 6u10, this problem reproduces with the classic java plugin only; the new java plugin doesn't have this problem.
                                     
2008-07-24
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.
                                     
2008-07-29
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.
                                     
2008-07-29
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
                                     
2008-08-04



Hardware and Software, Engineered to Work Together