Closed Bug 35707 Opened 25 years ago Closed 24 years ago

Live Connect should be lazily initialized

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla0.9.2

People

(Reporter: travis, Assigned: jst)

References

Details

(Keywords: dom0, helpwanted, perf)

Ok, so the plugin DLL is still coming in basically on the creation of the first JSEnvironment. This is due to the fact that live connect is not being lazily initialized. The line of code is http://lxr.mozilla.org/seamonkey/source/dom/src/base/nsJSEnvironment.cpp#1065. By Brendan's suggestion I'm giving it to Clayton.
Passing the buck to Norris. = C =
Assignee: clayton → norris
Roger, could you or rginda own this?
Assignee: norris → rogerl
Seems like we should be able to skip the init of liveconnect and register 'java', 'sun' and 'netscape' with the namespace manager, and have *them* initialize it on demand. Reassigning to jst, moving to layout.
Assignee: rogerl → jst
Component: Live Connect → Layout
Changing QA contact to reflect reassignment -
QA Contact: rginda → petersen
Blocks: 26516
McCabe's got the right idea. Just don't forget to register "Packages" too. /be
Accepting bug and nominating for beta3, fixing this would cut down on startup time and we're badly in need of cutting down on that...
Status: NEW → ASSIGNED
Keywords: nsbeta3, perf
Do we have any data on how much time this will save on startup? I'm inclined to mark this beta3-. Any objections?
Argh! Before you triage this prematurely, consider giving it to me. I'll hack on it. /be
Re-assigning to brendan (Johnny already has 19 nsbeta3+ bugs on his plate)...
Assignee: jst → brendan
Status: ASSIGNED → NEW
Mine all mine. /be
Status: NEW → ASSIGNED
Component: Layout → DOM Level 0
OS: Windows NT → All
QA Contact: petersen → pschwartau
Hardware: PC → All
Target Milestone: --- → M18
bug 46703 may be relevant: while that bug asks to share standard classes and clone their constructors lazily from a superglobal, it also talks of lazily creating (as well as binding) such objects. This bug (35707) definitely wants both late creation and late binding. /be
Target Milestone: M18 → mozilla0.9
Should this go back to jst now? Any activity planned? Nominating for mozilla0.9.
Keywords: nsbeta3mozilla0.9
Taking this one back, I'll try to get to this for mozilla0.9
Assignee: brendan → jst
Status: ASSIGNED → NEW
Keywords: helpwanted
Setting default QA contact -
QA Contact: pschwartau → desale
Keywords: dom0
Won't happen in time for mozilla0.9
Target Milestone: mozilla0.9 → mozilla0.9.1
Moving bugs that do not have "important" keywords or fixes in hand to the next milestone.
Target Milestone: mozilla0.9.1 → mozilla0.9.2
This is already done. We should no longer be seeing Java initialize at startup, until an applet loads, or explicit LiveConnect uses, such as java.lang.System.out.println('hello world.'). The DOM code we have right now is sufficiently lazy, because we need to have the LiveConnect properties be initialized.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Blocks: 71781
You need to log in before you can comment on or make changes to this bug.