Closed
Bug 35707
Opened 25 years ago
Closed 24 years ago
Live Connect should be lazily initialized
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
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.
Comment 3•24 years ago
|
||
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
Comment 5•24 years ago
|
||
McCabe's got the right idea. Just don't forget to register "Packages" too.
/be
Assignee | ||
Comment 6•24 years ago
|
||
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...
Comment 7•24 years ago
|
||
Do we have any data on how much time this will save on startup? I'm inclined to
mark this beta3-. Any objections?
Comment 8•24 years ago
|
||
Argh! Before you triage this prematurely, consider giving it to me. I'll hack
on it.
/be
Comment 9•24 years ago
|
||
Re-assigning to brendan (Johnny already has 19 nsbeta3+ bugs on his plate)...
Assignee: jst → brendan
Status: ASSIGNED → NEW
Comment 10•24 years ago
|
||
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
Comment 11•24 years ago
|
||
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
Updated•24 years ago
|
Target Milestone: M18 → mozilla0.9
Comment 12•24 years ago
|
||
Should this go back to jst now? Any activity planned? Nominating for mozilla0.9.
Keywords: nsbeta3 → mozilla0.9
Assignee | ||
Comment 13•24 years ago
|
||
Taking this one back, I'll try to get to this for mozilla0.9
Assignee | ||
Comment 15•24 years ago
|
||
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
Comment 17•24 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•