United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6618971 Plugin2: Legacy lifecycle support needs to be added
JDK-6618971 : Plugin2: Legacy lifecycle support needs to be added

Details
Type:
Bug
Submit Date:
2007-10-19
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-01-25
Component:
deploy
OS:
generic
Sub-Component:
plugin
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0,6u5
Fixed Versions:
6u10 (b09)

Related Reports
Relates:

Sub Tasks

Description
Legacy lifecycle support needs to be added the new Plug-in model. With legacy_lifecyce tag set to true, init() and constructor should get called once (for the first time), not when page is refreshed or swtiched back or forward and destroy should get called only and only when browser session is closed.

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u10/6618971.2
testcase: http://web-east.east.sun.com/deployment/www/tests/1.6.0_10/6618971/
                                     
2007-11-28
EVALUATION

Added support for the legacy applet lifecycle to the new Java Plug-In.
Improved upon the implementation in the old plug-in: added support for
caching multiple identical applets on the same web page, made the
caching more precise by including the document base in the caching
criteria, and added a watchdog timer to flush cached applets when
memory pressure is high.

Out of necessity, added support for getDocumentBase to
IExplorerPlugin. Fixed preexisting bug in MozPluginInstance where the
document base it was producing wasn't semantically correct. Fixed
preexisting bug in code which detected still-visible top-level windows
during AppContext disposal. Added "normalization" of document base
because the URL coming from web browser wasn't the same as when we
constructed a URL and then called toString() on it.

Tested with new mostly-automated test cases in both Internet Explorer
and Firefox 3.
                                     
2007-11-28



Hardware and Software, Engineered to Work Together