JSObject.getWindow(....) always return NULL?

VERIFIED DUPLICATE of bug 63466

Status

Core Graveyard
Java: OJI
VERIFIED DUPLICATE of bug 63466
17 years ago
7 years ago

People

(Reporter: Joe Chou, Assigned: Joe Chou)

Tracking

Trunk
Sun
Solaris

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

17 years ago
sting@itri.org.tw reported the following:


I am almost finishing my personal java OJI on Mozilla M18, and I am now
debugging LiveConnect for my pjava OJI,

I've found that there seems to be bugs in JSObject.getWindow(....),
The following is the clling sequence:
(1)jsj_JSObject.c(1278)
    Java_netscape_javascript_JSObject_getWindow(....)
        ....
        jsj_env = jsj_enter_js(jEnv, java_applet_obj, NULL, &cx, NULL,
                                       &saved_reporter, NULL, 0, NULL);
        ......
(2)jsj_JSObject.c(690)
    jsj_enter_js(....)
        ....
        #ifdef OJI
            if (!JSJ_callbacks->enter_js_from_java(jEnv, &err_msg,
                                     pNSIPrincipaArray,
                                     numPrincipals,
                                     pNSISecurityContext)) // now
pNSISecurityContext is NULL
        #else
            ....
        #endif
        ....
(3)lcglue.cpp(372)
        enter_js_from_java_impl(JNIEnv *jEnv, char **errp,
                        void **pNSIPrincipaArray, int numPrincipals,
                        void *pNSISecurityContext)    {    // now
pNSISecurityContext is NULL
            ....
           if (pNSISecurityContext != NULL) {
               ....
               ....
           }else    {
               return PR_FALSE;
           }
           ....

The calling sequence above causes the JSObject.getWindow(....) always
return NULL

Does anyone know how to solve this problem?????

Sting
(Assignee)

Comment 1

17 years ago
Reassign to myself.
Assignee: edburns → joe.chou
Summary: JSObject.getWindow(....) always return NULL → JSObject.getWindow(....) always return NULL?

Comment 2

17 years ago
Marking NEW to get it off our unconfirmed radar.
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 3

17 years ago
cc :jst 

Comment 4

17 years ago
This is a duplicate of bug # 63466. The problem is that the registration of the 
NS_CLIVECONNECT_CID class was removed by a check-in done by valeski back in 
December.


*** This bug has been marked as a duplicate of 63466 ***
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → DUPLICATE

Comment 5

17 years ago
Verified.
Status: RESOLVED → VERIFIED

Updated

7 years ago
Component: Java: OJI → Java: OJI
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.