printf("***Registering Security***\n");
printf("*** Registering Security\n");
NSRegisterSelf(nsISupports *aServMgr, const char *aPath){#ifdef DEBUG    printf("***Registering Security***\n");#endif    nsresult rv;    NS_WITH_SERVICE1(nsIComponentManager, compMgr, aServMgr,                      kComponentManagerCID, &rv);    if (NS_FAILED(rv))         return NS_ERROR_FAILURE;    rv = compMgr->RegisterComponent(nsScriptSecurityManager::GetCID(),                                    NS_SCRIPTSECURITYMANAGER_CLASSNAME,                                    NS_SCRIPTSECURITYMANAGER_PROGID, aPath,                                     PR_TRUE, PR_TRUE);    if (NS_FAILED(rv))         return NS_ERROR_FAILURE;    rv = compMgr->RegisterComponent(nsCodebasePrincipal::GetCID(),                                    NS_CODEBASEPRINCIPAL_CLASSNAME,                                    NS_CODEBASEPRINCIPAL_PROGID, aPath,                                     PR_TRUE, PR_TRUE);      if (NS_FAILED(rv))         return NS_ERROR_FAILURE;    if (NS_FAILED(rv))         return NS_ERROR_FAILURE;    return NS_OK;}