Currently the mozilla frame layout manager scan all the html tag and
generate the appropriate frame for each tag. For example, if there is a
tag like "applet", "embed" or "object", an nsObjectFrame will be
initiated and so on a pluginInstance got set up. However, this does not
cover some situations we encountered here. You can find more details in
bug 60018.
Basically the problem is when there is some java classes are
initiated in the javascript function,there is no nsObjectFrame generated
and therefore no javapluginInstance will be generated. This is OK most
times if we don't want to call some functions in netscape.javascript
package like "setMember", "getMember" and "call" etc. In fact the
successful call of these functions needs a pluginInstance object,
however there is no such objects exist.
My thought which could be wrong was to set up a dummy nsObjectFrame
somewhere when the java class got initiated (probably in
invoke_java_constructor function,
mozilla/js/src/liveconnect/jsj_method.c). But anyway I would like to
think this is a missing feature of the frame layout manager.
Please let me know how do you guys think anout this. Thanks in
advance!
-----------------------------------------------
Xiaobin Lu OJI, Desktop Foundation Software
Mailto:[EMAIL PROTECTED] Phone:408-517-6769/x6769
_______________________________________________