nsIPrincipal* principal = NULL; nsISecurityContext* context = NULL; if (mCodebaseURL != NULL) { principal = newCodebasePrincipal(mCodebaseURL); context = newSecurityContext(); } jobject jresult = NULL; nsresult result = theLiveConnectManager->Call(env, mObject, mFunctionName, mLength, mJavaArgs, &principal, (principal != NULL ? 1 : 0), context, &jresult); NS_IF_RELEASE(principal); NS_IF_RELEASE(context); if (result == NS_OK) *mJavaResult = ToGlobalRef(env, jresult);
nsresult result = theLiveConnectManager->RemoveMember(env, mObject, mPropertyName, mLength, NULL, 0, NULL);
	virtual void execute(JNIEnv* env)	{		/* If we have an applet, try to create a codebase principle. */		nsIPrincipal* principal = NULL;		nsISecurityContext* context = NULL;		if (mCodebaseURL != NULL) {			principal = newCodebasePrincipal(mCodebaseURL);			context = newSecurityContext();		}		jobject jresult = NULL;		nsresult result = theLiveConnectManager->Call(env, mObject, mFunctionName, mLength, mJavaArgs, &principal, (principal != NULL ? 1 : 0), context, &jresult);		NS_IF_RELEASE(principal);		NS_IF_RELEASE(context);		if (result == NS_OK)			*mJavaResult = ToGlobalRef(env, jresult);	}