JavaSecUI_getString(CAPS_TARGET_DESC_SPREADSHEET_ACCESS), JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_SPREADSHEET_ACCESS), JavaSecUI_getHelpURL(CAPS_TARGET_URL_SPREADSHEET_ACCESS),
CAPS_TARGET_DESC_SPREADSHEET_ACCESS, CAPS_TARGET_DETAIL_DESC_SPREADSHEET_ACCESS, CAPS_TARGET_URL_SPREADSHEET_ACCESS,
PRBool CreateSystemTargets(nsPrincipal *sysPrin){  nsUserTarget *userTarg;  nsTarget *target;  PRUint32 i=0;  nsUserTarget *ThreadAccessTarg;  nsUserTarget *ThreadGroupAccessTarg;  nsUserTarget *ExecAccessTarg;  nsUserTarget *ExitAccessTarg;  nsUserTarget *LinkAccessTarg;  nsUserTarget *PropertyWriteTarg;  nsUserTarget *PropertyReadTarg;  nsUserTarget *FileReadTarg;  nsUserTarget *FileWriteTarg;  nsUserTarget *FileDeleteTarg;  nsUserTarget *ListenTarg;  nsUserTarget *AcceptTarg;  nsUserTarget *ConnectTarg;  nsTarget *RedirectTarg;  nsUserTarget *ConnectWithRedirectTarg;  nsUserTarget *MulticastTarg;  nsUserTarget *TopLevelWindowTarg;  nsUserTarget *DialogModalityTarg;  nsTarget *PackageAccessTarg;  nsTarget *PackageDefinitionTarg;  nsUserTarget *SetFactoryTarg;  nsTarget *MemberAccessTarg;  nsUserTarget *PrintJobAccessTarg;  nsUserTarget *SystemClipboardAccessTarg;  nsUserTarget *AwtEventQueueAccessTarg;  nsTarget *SecurityProviderTarg;  nsTarget *CreateSecurityManagerTarg;  nsUserTarget *BrowserReadTarg;  nsUserTarget *BrowserWriteTarg;  nsUserTarget *UniversalPreferencesReadTarg;  nsUserTarget *UniversalPreferencesWriteTarg;  nsUserTarget *SendMailTarg;  nsUserTarget *RegistryPrivateTarg;  nsUserTarget *RegistryStandardTarg;  nsUserTarget *RegistryAdminTarg;  nsUserTarget *SilentInstallTarg;  nsUserTarget *SoftwareInstallTarg;  nsUserTarget *UninstallTarg;    nsUserTarget *LimitedFileAccessTarg;          nsUserTarget *UniversalFileAccessTarg;  nsUserTarget *UniversalBrowserAccessTarg;    nsTarget *ImpersonatorTarg;  nsUserTarget *FdReadTarg;  nsUserTarget *FdWriteTarg;  nsTarget *CodebaseEnvTarg;    nsUserTarget *ClientAuthTarg;  int targetRiskHigh = JavaSecUI_targetRiskHigh();  int targetRiskLow = JavaSecUI_targetRiskLow();   int targetRiskMedium = JavaSecUI_targetRiskMedium();  char *targetRiskColorHigh = JavaSecUI_getString(CAPS_TARGET_RISK_COLOR_HIGH);  char *targetRiskColorLow = JavaSecUI_getString(CAPS_TARGET_RISK_COLOR_LOW);  char *targetRiskColorMedium = JavaSecUI_getString(CAPS_TARGET_RISK_COLOR_MEDIUM);    //  // targets used by the real browser  //  nsTargetArray *targetPtrArray;    ThreadAccessTarg = new nsUserTarget("UniversalThreadAccess", sysPrin,                                      targetRiskHigh,                                      targetRiskColorHigh,                                      JavaSecUI_getString(CAPS_TARGET_DESC_THREAD_ACCESS),                                      JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_THREAD_ACCESS),                                      JavaSecUI_getHelpURL(CAPS_TARGET_URL_THREAD_ACCESS)                                      );  ThreadAccessTarg->registerTarget();    ThreadGroupAccessTarg = new nsUserTarget("UniversalThreadGroupAccess",                                            sysPrin,                                           targetRiskHigh,                                           targetRiskColorHigh,                                           JavaSecUI_getString(CAPS_TARGET_DESC_THREAD_GROUP_ACCESS),                                           JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_THREAD_GROUP_ACCESS),                                           JavaSecUI_getHelpURL(CAPS_TARGET_URL_THREAD_GROUP_ACCESS));  ThreadGroupAccessTarg->registerTarget();    ExecAccessTarg = new nsUserTarget("UniversalExecAccess", sysPrin,                                    targetRiskHigh,                                    targetRiskColorHigh,                                    JavaSecUI_getString(CAPS_TARGET_DESC_EXEC_ACCESS),                                    JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_EXEC_ACCESS),                                    JavaSecUI_getHelpURL(CAPS_TARGET_URL_EXEC_ACCESS));  ExecAccessTarg->registerTarget();    ExitAccessTarg = new nsUserTarget("UniversalExitAccess", sysPrin,                                    targetRiskHigh,                                    targetRiskColorHigh,                                    JavaSecUI_getString(CAPS_TARGET_DESC_EXIT_ACCESS),                                    JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_EXIT_ACCESS),                                    JavaSecUI_getHelpURL(CAPS_TARGET_URL_EXIT_ACCESS));  ExitAccessTarg->registerTarget();    LinkAccessTarg = new nsUserTarget("UniversalLinkAccess", sysPrin,                                    targetRiskHigh,                                    targetRiskColorHigh,                                    JavaSecUI_getString(CAPS_TARGET_DESC_LINK_ACCESS),                                    JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_LINK_ACCESS),                                    JavaSecUI_getHelpURL(CAPS_TARGET_URL_LINK_ACCESS));  LinkAccessTarg->registerTarget();    PropertyWriteTarg = new nsUserTarget("UniversalPropertyWrite", sysPrin,                                       targetRiskHigh,                                       targetRiskColorHigh,                                       JavaSecUI_getString(CAPS_TARGET_DESC_PROPERTY_WRITE),                                       JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_PROPERTY_WRITE),                                       JavaSecUI_getHelpURL(CAPS_TARGET_URL_PROPERTY_WRITE));  PropertyWriteTarg->registerTarget();    PropertyReadTarg = new nsUserTarget("UniversalPropertyRead", sysPrin,                                      targetRiskLow,                                      targetRiskColorLow,                                      JavaSecUI_getString(CAPS_TARGET_DESC_PROPERTY_READ),                                      JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_PROPERTY_READ),                                      JavaSecUI_getHelpURL(CAPS_TARGET_URL_PROPERTY_READ));  PropertyReadTarg->registerTarget();    FileReadTarg = new nsUserTarget("UniversalFileRead", sysPrin,                                  targetRiskHigh,                                  targetRiskColorHigh,                                  JavaSecUI_getString(CAPS_TARGET_DESC_FILE_READ),                                  JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_FILE_READ),                                  JavaSecUI_getHelpURL(CAPS_TARGET_URL_FILE_READ));  FileReadTarg->registerTarget();    FileWriteTarg = new nsUserTarget("UniversalFileWrite", sysPrin,                                   targetRiskHigh,                                   targetRiskColorHigh,                                   JavaSecUI_getString(CAPS_TARGET_DESC_FILE_WRITE),                                   JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_FILE_WRITE),                                   JavaSecUI_getHelpURL(CAPS_TARGET_URL_FILE_WRITE));  FileWriteTarg->registerTarget();    FileDeleteTarg = new nsUserTarget("UniversalFileDelete", sysPrin,                                    targetRiskHigh,                                    targetRiskColorHigh,                                    JavaSecUI_getString(CAPS_TARGET_DESC_FILE_DELETE),                                    JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_FILE_DELETE),                                    JavaSecUI_getHelpURL(CAPS_TARGET_URL_FILE_DELETE));  FileDeleteTarg->registerTarget();    FdReadTarg = new nsUserTarget("UniversalFdRead", sysPrin,                                targetRiskHigh,                                targetRiskColorHigh,                                JavaSecUI_getString(CAPS_TARGET_DESC_FD_READ),                                JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_FD_READ),                                JavaSecUI_getHelpURL(CAPS_TARGET_URL_FD_READ));  FdReadTarg->registerTarget();    FdWriteTarg = new nsUserTarget("UniversalFdWrite", sysPrin,                                 targetRiskHigh,                                 targetRiskColorHigh,                                 JavaSecUI_getString(CAPS_TARGET_DESC_FD_WRITE),                                 JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_FD_WRITE),                                 JavaSecUI_getHelpURL(CAPS_TARGET_URL_FD_WRITE));  FdWriteTarg->registerTarget();    ListenTarg = new nsUserTarget("UniversalListen", sysPrin,                                targetRiskHigh,                                targetRiskColorHigh,                                JavaSecUI_getString(CAPS_TARGET_DESC_LISTEN),                                JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_LISTEN),                                JavaSecUI_getHelpURL(CAPS_TARGET_URL_LISTEN));  ListenTarg->registerTarget();    AcceptTarg = new nsUserTarget("UniversalAccept", sysPrin,                                targetRiskHigh,                                targetRiskColorHigh,                                JavaSecUI_getString(CAPS_TARGET_DESC_ACCEPT),                                JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_ACCEPT),                                JavaSecUI_getHelpURL(CAPS_TARGET_URL_ACCEPT));  AcceptTarg->registerTarget();    MulticastTarg = new nsUserTarget("UniversalMulticast", sysPrin,                                   targetRiskHigh,                                   targetRiskColorHigh,                                   JavaSecUI_getString(CAPS_TARGET_DESC_MULTICAST),                                   JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_MULTICAST),                                   JavaSecUI_getHelpURL(CAPS_TARGET_URL_MULTICAST));  MulticastTarg->registerTarget();    TopLevelWindowTarg = new nsUserTarget("UniversalTopLevelWindow", sysPrin,                                        targetRiskHigh,                                        targetRiskColorHigh,                                        JavaSecUI_getString(CAPS_TARGET_DESC_TOP_LEVEL_WINDOW),                                        JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_TOP_LEVEL_WINDOW),                                        JavaSecUI_getHelpURL(CAPS_TARGET_URL_TOP_LEVEL_WINDOW));  TopLevelWindowTarg->registerTarget();    DialogModalityTarg = new nsUserTarget("UniversalDialogModality", sysPrin,                                        targetRiskMedium,                                        targetRiskColorMedium,                                        JavaSecUI_getString(CAPS_TARGET_DESC_DIALOG_MODALITY),                                        JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_DIALOG_MODALITY),                                        JavaSecUI_getHelpURL(CAPS_TARGET_URL_DIALOG_MODALITY));  DialogModalityTarg->registerTarget();    PackageAccessTarg = new nsTarget("UniversalPackageAccess", sysPrin,                                   targetRiskHigh,                                   targetRiskColorHigh,                                   JavaSecUI_getString(CAPS_TARGET_DESC_PACKAGE_ACCESS),                                   JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_PACKAGE_ACCESS),                                   JavaSecUI_getHelpURL(CAPS_TARGET_URL_PACKAGE_ACCESS));  PackageAccessTarg->registerTarget();    PackageDefinitionTarg = new nsTarget("UniversalPackageDefinition",                                        sysPrin,                                       targetRiskHigh,                                       targetRiskColorHigh,                                       JavaSecUI_getString(CAPS_TARGET_DESC_PACKAGE_DEFINITION),                                       JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_PACKAGE_DEFINITION),                                       JavaSecUI_getHelpURL(CAPS_TARGET_URL_PACKAGE_DEFINITION));  PackageDefinitionTarg->registerTarget();    SetFactoryTarg = new nsUserTarget("UniversalSetFactory",                                     sysPrin,                                    targetRiskHigh,                                    targetRiskColorHigh,                                    JavaSecUI_getString(CAPS_TARGET_DESC_SET_FACTORY),                                    JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_SET_FACTORY),                                    JavaSecUI_getHelpURL(CAPS_TARGET_URL_SET_FACTORY));  SetFactoryTarg->registerTarget();    MemberAccessTarg = new nsTarget("UniversalMemberAccess",                                   sysPrin,                                  targetRiskHigh,                                  targetRiskColorHigh,                                  JavaSecUI_getString(CAPS_TARGET_DESC_MEMBER_ACCESS),                                  JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_MEMBER_ACCESS),                                  JavaSecUI_getHelpURL(CAPS_TARGET_URL_MEMBER_ACCESS));  MemberAccessTarg->registerTarget();    PrintJobAccessTarg = new nsUserTarget("UniversalPrintJobAccess",                                        sysPrin,                                        targetRiskLow,                                        targetRiskColorLow,                                        JavaSecUI_getString(CAPS_TARGET_DESC_PRINT_JOB_ACCESS),                                        JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_PRINT_JOB_ACCESS),                                        JavaSecUI_getHelpURL(CAPS_TARGET_URL_PRINT_JOB_ACCESS));  PrintJobAccessTarg->registerTarget();    SystemClipboardAccessTarg = new nsUserTarget("UniversalSystemClipboardAccess",                                                sysPrin,                                               targetRiskHigh,                                               targetRiskColorHigh,                                               JavaSecUI_getString(CAPS_TARGET_DESC_SYSTEM_CLIPBOARD_ACCESS),                                               JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_SYSTEM_CLIPBOARD_ACCESS),                                               JavaSecUI_getHelpURL(CAPS_TARGET_URL_SYSTEM_CLIPBOARD_ACCESS));  SystemClipboardAccessTarg->registerTarget();    AwtEventQueueAccessTarg = new nsUserTarget("UniversalAwtEventQueueAccess",                                              sysPrin,                                             targetRiskHigh,                                             targetRiskColorHigh,                                             JavaSecUI_getString(CAPS_TARGET_DESC_AWT_EVENT_QUEUE_ACCESS),                                             JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_AWT_EVENT_QUEUE_ACCESS),                                             JavaSecUI_getHelpURL(CAPS_TARGET_URL_AWT_EVENT_QUEUE_ACCESS));  AwtEventQueueAccessTarg->registerTarget();    SecurityProviderTarg = new nsTarget("UniversalSecurityProvider",                                      sysPrin,                                      targetRiskHigh,                                      targetRiskColorHigh,                                      JavaSecUI_getString(CAPS_TARGET_DESC_SECURITY_PROVIDER),                                      JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_SECURITY_PROVIDER),                                      JavaSecUI_getHelpURL(CAPS_TARGET_URL_SECURITY_PROVIDER));  SecurityProviderTarg->registerTarget();    CreateSecurityManagerTarg = new nsTarget("CreateSecurityManager",                                           sysPrin,                                           targetRiskHigh,                                           targetRiskColorHigh,                                           JavaSecUI_getString(CAPS_TARGET_DESC_CREATE_SECURITY_MANAGER),                                           JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_CREATE_SECURITY_MANAGER),                                           JavaSecUI_getHelpURL(CAPS_TARGET_URL_CREATE_SECURITY_MANAGER));  CreateSecurityManagerTarg->registerTarget();    ImpersonatorTarg = new nsTarget("Impersonator", sysPrin,                                  targetRiskHigh,                                  targetRiskColorHigh,                                  JavaSecUI_getString(CAPS_TARGET_DESC_IMPERSONATOR),                                  JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_IMPERSONATOR),                                  JavaSecUI_getHelpURL(CAPS_TARGET_URL_IMPERSONATOR));  ImpersonatorTarg->registerTarget();    BrowserReadTarg = new nsUserTarget("UniversalBrowserRead", sysPrin,                                     targetRiskMedium,                                     targetRiskColorMedium,                                     JavaSecUI_getString(CAPS_TARGET_DESC_BROWSER_READ),                                     JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_BROWSER_READ),                                     JavaSecUI_getHelpURL(CAPS_TARGET_URL_BROWSER_READ));  BrowserReadTarg->registerTarget();    BrowserWriteTarg = new nsUserTarget("UniversalBrowserWrite", sysPrin,                                      targetRiskHigh,                                      targetRiskColorHigh,                                      JavaSecUI_getString(CAPS_TARGET_DESC_BROWSER_WRITE),                                      JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_BROWSER_WRITE),                                      JavaSecUI_getHelpURL(CAPS_TARGET_URL_BROWSER_WRITE));  BrowserWriteTarg->registerTarget();    UniversalPreferencesReadTarg = new nsUserTarget("UniversalPreferencesRead",                                                   sysPrin,                                                  targetRiskMedium,                                                  targetRiskColorMedium,                                                  JavaSecUI_getString(CAPS_TARGET_DESC_PREFS_READ),                                                  JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_PREFS_READ),                                                  JavaSecUI_getHelpURL(CAPS_TARGET_URL_PREFS_READ));  UniversalPreferencesReadTarg->registerTarget();    UniversalPreferencesWriteTarg = new nsUserTarget("UniversalPreferencesWrite",                                                    sysPrin,                                                   targetRiskHigh,                                                   targetRiskColorHigh,                                                   JavaSecUI_getString(CAPS_TARGET_DESC_PREFS_WRITE),                                                   JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_PREFS_WRITE),                                                   JavaSecUI_getHelpURL(CAPS_TARGET_URL_PREFS_WRITE));  UniversalPreferencesWriteTarg->registerTarget();    SendMailTarg = new nsUserTarget("UniversalSendMail", sysPrin,                                  targetRiskMedium,                                  targetRiskColorMedium,                                  JavaSecUI_getString(CAPS_TARGET_DESC_SEND_MAIL),                                  JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_SEND_MAIL),                                  JavaSecUI_getHelpURL(CAPS_TARGET_URL_SEND_MAIL));  SendMailTarg->registerTarget();    RegistryPrivateTarg = new nsUserTarget("PrivateRegistryAccess", sysPrin,                                         targetRiskLow,                                         targetRiskColorLow,                                         JavaSecUI_getString(CAPS_TARGET_DESC_REG_PRIVATE),                                         JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_REG_PRIVATE),                                         JavaSecUI_getHelpURL(CAPS_TARGET_URL_REG_PRIVATE));  RegistryPrivateTarg->registerTarget();    targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(1, 1);  i = 0;  targetPtrArray->Set(i++, (void *)RegistryPrivateTarg);  RegistryStandardTarg = new nsUserTarget("StandardRegistryAccess", sysPrin,                                          targetRiskMedium,                                          targetRiskColorMedium,                                          JavaSecUI_getString(CAPS_TARGET_DESC_REG_STANDARD),                                          JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_REG_STANDARD),                                          JavaSecUI_getHelpURL(CAPS_TARGET_URL_REG_STANDARD),                                          targetPtrArray);  RegistryStandardTarg->registerTarget();    targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(1, 1);  i = 0;  targetPtrArray->Set(i++, (void *)RegistryStandardTarg);  RegistryAdminTarg = new nsUserTarget("AdministratorRegistryAccess",                                        sysPrin,                                       targetRiskHigh,                                       targetRiskColorHigh,                                       JavaSecUI_getString(CAPS_TARGET_DESC_REG_ADMIN),                                       JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_REG_ADMIN),                                       JavaSecUI_getHelpURL(CAPS_TARGET_URL_REG_ADMIN),                                       targetPtrArray);  RegistryAdminTarg->registerTarget();    UninstallTarg = new nsUserTarget("Uninstall",                                     sysPrin,                                    targetRiskHigh,			                        targetRiskColorHigh,                                    JavaSecUI_getString(CAPS_TARGET_DESC_UNINSTALL),                                    JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_UNINSTALL),                                    JavaSecUI_getString(CAPS_TARGET_URL_UNINSTALL));  UninstallTarg->registerTarget();  targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(4,1);  i=0;  targetPtrArray->Set(i++, (void *)RegistryStandardTarg);  targetPtrArray->Set(i++, (void *)UniversalPreferencesReadTarg);  targetPtrArray->Set(i++, (void *)FileReadTarg);  targetPtrArray->Set(i++, (void *)UninstallTarg);  SoftwareInstallTarg = new nsUserTarget("SoftwareInstall",                                         sysPrin,                                        targetRiskHigh,			                            targetRiskColorHigh,                                        JavaSecUI_getString(CAPS_TARGET_DESC_SOFTWAREINSTALL),                                        JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_SOFTWAREINSTALL),                                        JavaSecUI_getString(CAPS_TARGET_URL_SOFTWAREINSTALL),                                        targetPtrArray);  SoftwareInstallTarg->registerTarget();  targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(1, 1);  i = 0;  targetPtrArray->Set(i++, (void *)SoftwareInstallTarg);  SilentInstallTarg = new nsUserTarget("SilentInstall",                                        sysPrin,                                        targetRiskHigh,			                            targetRiskColorHigh,                                        JavaSecUI_getString(CAPS_TARGET_DESC_SILENTINSTALL),                                        JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_SILENTINSTALL),                                        JavaSecUI_getString(CAPS_TARGET_URL_SILENTINSTALL),                                        targetPtrArray);  SilentInstallTarg->registerTarget();  targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(2, 1);  i=0;  targetPtrArray->Set(i++, (void *)FdReadTarg);  targetPtrArray->Set(i++, (void *)FdWriteTarg);  ConnectTarg = new nsUserTarget("UniversalConnect", sysPrin,                                 targetRiskHigh,                                 targetRiskColorHigh,                                 JavaSecUI_getString(CAPS_TARGET_DESC_CONNECT),                                 JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_CONNECT),                                 JavaSecUI_getHelpURL(CAPS_TARGET_URL_CONNECT),                                 targetPtrArray);  ConnectTarg->registerTarget();    ClientAuthTarg = new nsUserTarget("ClientAuth", sysPrin,                                    targetRiskMedium,                                    targetRiskColorMedium,                                    JavaSecUI_getString(CAPS_TARGET_DESC_CLIENT_AUTH),                                    JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_CLIENT_AUTH),                                    JavaSecUI_getHelpURL(CAPS_TARGET_URL_CLIENT_AUTH));  ClientAuthTarg->registerTarget();    RedirectTarg = new nsTarget("UniversalRedirect", sysPrin,                              targetRiskHigh,                              targetRiskColorHigh,                              JavaSecUI_getString(CAPS_TARGET_DESC_REDIRECT),                              JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_REDIRECT),                              JavaSecUI_getHelpURL(CAPS_TARGET_URL_REDIRECT));  RedirectTarg->registerTarget();    targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(2, 1);  i=0;  targetPtrArray->Set(i++, (void *)ConnectTarg);  targetPtrArray->Set(i++, (void *)RedirectTarg);  ConnectWithRedirectTarg = new nsUserTarget("UniversalConnectWithRedirect",                                              sysPrin,                                             targetRiskHigh,                                             targetRiskColorHigh,                                             JavaSecUI_getString(CAPS_TARGET_DESC_CONNECT_WITH_REDIRECT),                                             JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_CONNECT_WITH_REDIRECT),                                             JavaSecUI_getHelpURL(CAPS_TARGET_URL_CONNECT_WITH_REDIRECT),                                             targetPtrArray);  ConnectWithRedirectTarg->registerTarget();    targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(2, 1);  i=0;  targetPtrArray->Set(i++, (void *)FdReadTarg);  targetPtrArray->Set(i++, (void *)FdWriteTarg);  CodebaseEnvTarg = new nsTarget("CodebaseEnvironment", sysPrin,                                 targetRiskLow,                                 targetRiskColorLow,                                 JavaSecUI_getString(CAPS_TARGET_DESC_CODEBASE_ENV),                                 JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_CODEBASE_ENV),                                 JavaSecUI_getHelpURL(CAPS_TARGET_URL_CODEBASE_ENV),                                 targetPtrArray);  CodebaseEnvTarg->registerTarget();    targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(31, 1);  i=0;  targetPtrArray->Set(i++, (void *)ThreadAccessTarg);  targetPtrArray->Set(i++, (void *)ThreadGroupAccessTarg);  targetPtrArray->Set(i++, (void *)ExecAccessTarg);  targetPtrArray->Set(i++, (void *)ExitAccessTarg);  targetPtrArray->Set(i++, (void *)LinkAccessTarg);  targetPtrArray->Set(i++, (void *)PropertyWriteTarg);  targetPtrArray->Set(i++, (void *)PropertyReadTarg);  targetPtrArray->Set(i++, (void *)FileReadTarg);  targetPtrArray->Set(i++, (void *)FileWriteTarg);  targetPtrArray->Set(i++, (void *)FileDeleteTarg);  targetPtrArray->Set(i++, (void *)FdReadTarg);  targetPtrArray->Set(i++, (void *)FdWriteTarg);  targetPtrArray->Set(i++, (void *)ListenTarg);  targetPtrArray->Set(i++, (void *)AcceptTarg);  targetPtrArray->Set(i++, (void *)ConnectTarg);  targetPtrArray->Set(i++, (void *)MulticastTarg);  targetPtrArray->Set(i++, (void *)TopLevelWindowTarg);  targetPtrArray->Set(i++, (void *)PackageAccessTarg);  targetPtrArray->Set(i++, (void *)PackageDefinitionTarg);  targetPtrArray->Set(i++, (void *)SetFactoryTarg);  targetPtrArray->Set(i++, (void *)MemberAccessTarg);  targetPtrArray->Set(i++, (void *)PrintJobAccessTarg);  targetPtrArray->Set(i++, (void *)SystemClipboardAccessTarg);  targetPtrArray->Set(i++, (void *)AwtEventQueueAccessTarg);  targetPtrArray->Set(i++, (void *)SecurityProviderTarg);  targetPtrArray->Set(i++, (void *)CreateSecurityManagerTarg);  targetPtrArray->Set(i++, (void *)ImpersonatorTarg);  targetPtrArray->Set(i++, (void *)BrowserReadTarg);  targetPtrArray->Set(i++, (void *)BrowserWriteTarg);  targetPtrArray->Set(i++, (void *)SendMailTarg);  targetPtrArray->Set(i++, (void *)CodebaseEnvTarg);  target = new nsTarget("SuperUser", sysPrin,                         targetRiskHigh,                        targetRiskColorHigh,                        JavaSecUI_getString(CAPS_TARGET_DESC_SUPER_USER),                        JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_SUPER_USER),                        JavaSecUI_getHelpURL(CAPS_TARGET_URL_SUPER_USER),                         targetPtrArray);  target->registerTarget();    //  // targets used by Constellation group  //  // Create a user target that protects cache APIs  nsTarget *SiteArchiveTarget = new nsUserTarget("SiteArchiveTarget",                                                     sysPrin,                                                 targetRiskHigh,                                                 targetRiskColorHigh,                                                 JavaSecUI_getString(CAPS_TARGET_DESC_SAR),                                                 JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_SAR),                                                 JavaSecUI_getHelpURL(CAPS_TARGET_URL_SAR));  SiteArchiveTarget->registerTarget();    targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(11, 1);  i=0;  targetPtrArray->Set(i++, (void *)ThreadAccessTarg);  targetPtrArray->Set(i++, (void *)ThreadGroupAccessTarg);  targetPtrArray->Set(i++, (void *)LinkAccessTarg);  targetPtrArray->Set(i++, (void *)PropertyWriteTarg);  targetPtrArray->Set(i++, (void *)PropertyReadTarg);  targetPtrArray->Set(i++, (void *)ListenTarg);  targetPtrArray->Set(i++, (void *)AcceptTarg);  targetPtrArray->Set(i++, (void *)ConnectTarg);  targetPtrArray->Set(i++, (void *)TopLevelWindowTarg);  targetPtrArray->Set(i++, (void *)PackageAccessTarg);  targetPtrArray->Set(i++, (void *)PackageDefinitionTarg);  target = new nsUserTarget("30Capabilities", sysPrin,                             targetRiskHigh,                            targetRiskColorHigh,                            JavaSecUI_getString(CAPS_TARGET_DESC_30_CAPABILITIES),                            JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_30_CAPABILITIES),                            JavaSecUI_getHelpURL(CAPS_TARGET_URL_30_CAPABILITIES),                             targetPtrArray);  target->registerTarget();  //  // targets used by Marimba  //    // access to this target only enables file operations below the  // root of the castanet channel cache.  nsTarget *mappTarget = new nsTarget("MarimbaAppContextTarget", sysPrin,                                       targetRiskMedium,                                      targetRiskColorMedium,                                      JavaSecUI_getString(CAPS_TARGET_DESC_MARIMBA),                                      JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_MARIMBA),                                      JavaSecUI_getHelpURL(CAPS_TARGET_URL_MARIMBA));  mappTarget->registerTarget();    //  // Internal target used by Marimba code   //  targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(10, 1);  i=0;  targetPtrArray->Set(i++, (void *)FileReadTarg);  targetPtrArray->Set(i++, (void *)FileWriteTarg);  targetPtrArray->Set(i++, (void *)FileDeleteTarg);  targetPtrArray->Set(i++, (void *)PropertyReadTarg);  targetPtrArray->Set(i++, (void *)ConnectTarg);  targetPtrArray->Set(i++, (void *)TopLevelWindowTarg);  targetPtrArray->Set(i++, (void *)PackageAccessTarg);  targetPtrArray->Set(i++, (void *)ThreadAccessTarg);  targetPtrArray->Set(i++, (void *)ThreadGroupAccessTarg);  targetPtrArray->Set(i++, (void *)mappTarget);  target = new nsUserTarget("MarimbaInternalTarget", sysPrin,                             targetRiskHigh,                            targetRiskColorHigh,                            JavaSecUI_getString(CAPS_TARGET_DESC_MARIMBA),                            JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_MARIMBA),                            JavaSecUI_getHelpURL(CAPS_TARGET_URL_MARIMBA),                             targetPtrArray);  target->registerTarget();    //  // internal target used by the netscape IIOP runtime  //  targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(4, 1);  i = 0;  targetPtrArray->Set(i++, (void *)ListenTarg);  targetPtrArray->Set(i++, (void *)AcceptTarg);  targetPtrArray->Set(i++, (void *)ConnectTarg);  targetPtrArray->Set(i++, (void *)CodebaseEnvTarg);  nsTarget *iiopTarget = new nsUserTarget("IIOPRuntime", sysPrin,                                       targetRiskHigh,                                       targetRiskColorHigh,                                       JavaSecUI_getString(CAPS_TARGET_DESC_IIOP),                                       JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_IIOP),                                       JavaSecUI_getHelpURL(CAPS_TARGET_URL_IIOP),                                       targetPtrArray);  iiopTarget->registerTarget();      //  // targets used for internal testing/debugging  //  targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(10, 1);  i=0;  targetPtrArray->Set(i++, (void *)ExecAccessTarg);  targetPtrArray->Set(i++, (void *)PropertyWriteTarg);  targetPtrArray->Set(i++, (void *)PropertyReadTarg);  targetPtrArray->Set(i++, (void *)FileReadTarg);  targetPtrArray->Set(i++, (void *)ListenTarg);  targetPtrArray->Set(i++, (void *)AcceptTarg);  targetPtrArray->Set(i++, (void *)ConnectTarg);  targetPtrArray->Set(i++, (void *)ThreadAccessTarg);  targetPtrArray->Set(i++, (void *)ThreadGroupAccessTarg);  targetPtrArray->Set(i++, (void *)SetFactoryTarg);  userTarg = new nsUserTarget("Debugger", sysPrin,                              targetRiskHigh,                              targetRiskColorHigh,                              JavaSecUI_getString(CAPS_TARGET_DESC_DEBUGGER),                              JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_DEBUGGER),                              JavaSecUI_getHelpURL(CAPS_TARGET_URL_DEBUGGER),                               targetPtrArray);  userTarg->registerTarget();    targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(1, 1);  i=0;  targetPtrArray->Set(i++, (void *)BrowserWriteTarg);  userTarg = new nsUserTarget("CanvasAccess", sysPrin,                              targetRiskHigh,                              targetRiskColorHigh,                              JavaSecUI_getString(CAPS_TARGET_DESC_CANVAS_ACCESS),                              JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_CANVAS_ACCESS),                              JavaSecUI_getHelpURL(CAPS_TARGET_URL_CANVAS_ACCESS),                               targetPtrArray);  userTarg->registerTarget();    targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(5, 1);  i=0;  targetPtrArray->Set(i++, (void *)LinkAccessTarg);  targetPtrArray->Set(i++, (void *)PropertyReadTarg);  targetPtrArray->Set(i++, (void *)FileReadTarg);  targetPtrArray->Set(i++, (void *)FileWriteTarg);  targetPtrArray->Set(i++, (void *)FileDeleteTarg);  UniversalFileAccessTarg = new nsUserTarget("UniversalFileAccess",                                              sysPrin,                                             targetRiskHigh,                                             targetRiskColorHigh,                                             JavaSecUI_getString(CAPS_TARGET_DESC_FILE_ACCESS),                                             JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_FILE_ACCESS),                                             JavaSecUI_getHelpURL(CAPS_TARGET_URL_FILE_ACCESS),                                             targetPtrArray);  UniversalFileAccessTarg->registerTarget();    targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(2, 1);  i=0;  targetPtrArray->Set(i++, (void *)BrowserReadTarg);  targetPtrArray->Set(i++, (void *)BrowserWriteTarg);  UniversalBrowserAccessTarg = new nsUserTarget("UniversalBrowserAccess",                                                sysPrin,                                                targetRiskHigh,                                                targetRiskColorHigh,                                                JavaSecUI_getString(CAPS_TARGET_DESC_BROWSER_ACCESS),                                                JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_BROWSER_ACCESS),                                                JavaSecUI_getHelpURL(CAPS_TARGET_URL_BROWSER_ACCESS),                                                targetPtrArray);  UniversalBrowserAccessTarg->registerTarget();    LimitedFileAccessTarg = new nsUserTarget("LimitedFileAccess", sysPrin,                                         targetRiskLow,                                         targetRiskColorLow,                                         JavaSecUI_getString(CAPS_TARGET_DESC_LIMITED_FILE_ACCESS),                                         JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_LIMITED_FILE_ACCESS),                                         JavaSecUI_getHelpURL(CAPS_TARGET_URL_LIMITED_FILE_ACCESS));  LimitedFileAccessTarg->registerTarget();			  targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(1, 1);  i=0;  targetPtrArray->Set(i++, (void *)RegistryPrivateTarg);  userTarg = new nsUserTarget("GamesAccess", sysPrin,                              targetRiskLow,                              targetRiskColorLow,                              JavaSecUI_getString(CAPS_TARGET_DESC_GAMES_ACCESS),                              JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_GAMES_ACCESS),                              JavaSecUI_getHelpURL(CAPS_TARGET_URL_GAMES_ACCESS),                               targetPtrArray);  userTarg->registerTarget();    targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(4, 1);  i=0;  targetPtrArray->Set(i++, (void *)UniversalFileAccessTarg);  targetPtrArray->Set(i++, (void *)RegistryStandardTarg);  targetPtrArray->Set(i++, (void *)PrintJobAccessTarg);  targetPtrArray->Set(i++, (void *)SystemClipboardAccessTarg);  userTarg = new nsUserTarget("WordProcessorAccess", sysPrin,                              targetRiskHigh,                              targetRiskColorHigh,                              JavaSecUI_getString(CAPS_TARGET_DESC_WORD_PROCESSOR_ACCESS),                              JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_WORD_PROCESSOR_ACCESS),                              JavaSecUI_getHelpURL(CAPS_TARGET_URL_WORD_PROCESSOR_ACCESS),                               targetPtrArray);  userTarg->registerTarget();    targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(4, 1);  i=0;  targetPtrArray->Set(i++, (void *)UniversalFileAccessTarg);  targetPtrArray->Set(i++, (void *)RegistryStandardTarg);  targetPtrArray->Set(i++, (void *)PrintJobAccessTarg);  targetPtrArray->Set(i++, (void *)SystemClipboardAccessTarg);  userTarg = new nsUserTarget("SpreadsheetAccess", sysPrin,                              targetRiskHigh,                              targetRiskColorHigh,                              JavaSecUI_getString(CAPS_TARGET_DESC_SPREADSHEET_ACCESS),                              JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_SPREADSHEET_ACCESS),                              JavaSecUI_getHelpURL(CAPS_TARGET_URL_SPREADSHEET_ACCESS),                               targetPtrArray);  userTarg->registerTarget();    targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(4, 1);  i=0;  targetPtrArray->Set(i++, (void *)UniversalFileAccessTarg);  targetPtrArray->Set(i++, (void *)RegistryStandardTarg);  targetPtrArray->Set(i++, (void *)PrintJobAccessTarg);  targetPtrArray->Set(i++, (void *)SystemClipboardAccessTarg);  userTarg = new nsUserTarget("PresentationAccess", sysPrin,                              targetRiskHigh,                              targetRiskColorHigh,                              JavaSecUI_getString(CAPS_TARGET_DESC_PRESENTATION_ACCESS),                              JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_PRESENTATION_ACCESS),                              JavaSecUI_getHelpURL(CAPS_TARGET_URL_PRESENTATION_ACCESS),                               targetPtrArray);  userTarg->registerTarget();    targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(4, 1);  i=0;  targetPtrArray->Set(i++, (void *)UniversalFileAccessTarg);  targetPtrArray->Set(i++, (void *)RegistryStandardTarg);  targetPtrArray->Set(i++, (void *)PrintJobAccessTarg);  targetPtrArray->Set(i++, (void *)SystemClipboardAccessTarg);  userTarg = new nsUserTarget("DatabaseAccess", sysPrin,                              targetRiskHigh,                              targetRiskColorHigh,                              JavaSecUI_getString(CAPS_TARGET_DESC_DATABASE_ACCESS),                              JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_DATABASE_ACCESS),                              JavaSecUI_getHelpURL(CAPS_TARGET_URL_DATABASE_ACCESS),                               targetPtrArray);  userTarg->registerTarget();    targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(7, 1);  i=0;  targetPtrArray->Set(i++, (void *)LinkAccessTarg);  targetPtrArray->Set(i++, (void *)PropertyReadTarg);  targetPtrArray->Set(i++, (void *)ListenTarg);  targetPtrArray->Set(i++, (void *)AcceptTarg);  targetPtrArray->Set(i++, (void *)ConnectTarg);  targetPtrArray->Set(i++, (void *)PrintJobAccessTarg);  targetPtrArray->Set(i++, (void *)SystemClipboardAccessTarg);  userTarg = new nsUserTarget("TerminalEmulator", sysPrin,                              targetRiskHigh,                              targetRiskColorHigh,                              JavaSecUI_getString(CAPS_TARGET_DESC_TERMINAL_EMULATOR),                              JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_TERMINAL_EMULATOR),                              JavaSecUI_getHelpURL(CAPS_TARGET_URL_TERMINAL_EMULATOR),                              targetPtrArray);  userTarg->registerTarget();      // JAR packager Target  targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(3, 1);  i=0;  targetPtrArray->Set(i++, (void *)UniversalFileAccessTarg);  targetPtrArray->Set(i++, (void *)RegistryStandardTarg);  targetPtrArray->Set(i++, (void *)TopLevelWindowTarg);  userTarg = new nsUserTarget("JARPackager", sysPrin,                              targetRiskHigh,                              targetRiskColorHigh,                              JavaSecUI_getString(CAPS_TARGET_DESC_JAR_PACKAGER),                              JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_JAR_PACKAGER),                              JavaSecUI_getHelpURL(CAPS_TARGET_URL_JAR_PACKAGER),                              targetPtrArray);  userTarg->registerTarget();    // a macro Target for PE  targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(7, 1);  i=0;  targetPtrArray->Set(i++, (void *)BrowserReadTarg);  targetPtrArray->Set(i++, (void *)BrowserWriteTarg);  targetPtrArray->Set(i++, (void *)UniversalPreferencesReadTarg);  targetPtrArray->Set(i++, (void *)UniversalPreferencesWriteTarg);  targetPtrArray->Set(i++, (void *)TopLevelWindowTarg);  targetPtrArray->Set(i++, (void *)ConnectTarg);  targetPtrArray->Set(i++, (void *)UniversalFileAccessTarg);  userTarg = new nsUserTarget("AccountSetup", sysPrin,                              targetRiskHigh,                              targetRiskColorHigh,                              JavaSecUI_getString(CAPS_TARGET_DESC_ACCOUNT_SETUP),                              JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_ACCOUNT_SETUP),                              JavaSecUI_getHelpURL(CAPS_TARGET_URL_ACCOUNT_SETUP),                              targetPtrArray);  userTarg->registerTarget();      // Netcaster Target  targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(12, 1);  i=0;  targetPtrArray->Set(i++, (void *)BrowserReadTarg);  targetPtrArray->Set(i++, (void *)BrowserWriteTarg);  targetPtrArray->Set(i++, (void *)FileReadTarg);  targetPtrArray->Set(i++, (void *)FileWriteTarg);  targetPtrArray->Set(i++, (void *)SiteArchiveTarget);  targetPtrArray->Set(i++, (void *)UniversalFileAccessTarg);  targetPtrArray->Set(i++, (void *)UniversalPreferencesReadTarg);  targetPtrArray->Set(i++, (void *)UniversalPreferencesWriteTarg);  targetPtrArray->Set(i++, (void *)ConnectWithRedirectTarg);  targetPtrArray->Set(i++, (void *)ThreadAccessTarg);  targetPtrArray->Set(i++, (void *)ThreadGroupAccessTarg);  targetPtrArray->Set(i++, (void *)LinkAccessTarg);  target = new nsUserTarget("Netcaster", sysPrin,                             targetRiskHigh,                            targetRiskColorHigh,                            JavaSecUI_getString(CAPS_TARGET_DESC_CONSTELLATION),                            JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_CONSTELLATION),                            JavaSecUI_getHelpURL(CAPS_TARGET_URL_CONSTELLATION),                             targetPtrArray);  target->registerTarget();  /* Permission to All privileges in Java */  target = new nsUserTarget("AllJavaPermission", sysPrin,                             targetRiskHigh,                            targetRiskColorHigh,                            JavaSecUI_getString(CAPS_TARGET_DESC_ALL_JAVA_PERMISSION),                            JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_ALL_JAVA_PERMISSION),                            JavaSecUI_getHelpURL(CAPS_TARGET_URL_ALL_JAVA_PERMISSION));  target->registerTarget();  /* Permission to All privileges in Java */  targetPtrArray = new nsTargetArray();  targetPtrArray->SetSize(7, 1);  i=0;  /* The following list of JS targets came from lm_taint.c */  targetPtrArray->Set(i++, (void *)BrowserReadTarg);  targetPtrArray->Set(i++, (void *)BrowserWriteTarg);  targetPtrArray->Set(i++, (void *)SendMailTarg);  targetPtrArray->Set(i++, (void *)FileReadTarg);  targetPtrArray->Set(i++, (void *)FileWriteTarg);  targetPtrArray->Set(i++, (void *)UniversalPreferencesReadTarg);  targetPtrArray->Set(i++, (void *)UniversalPreferencesWriteTarg);  target = new nsUserTarget("AllJavaScriptPermission", sysPrin,                             targetRiskHigh,                            targetRiskColorHigh,                            JavaSecUI_getString(CAPS_TARGET_DESC_ALL_JS_PERMISSION),                            JavaSecUI_getString(CAPS_TARGET_DETAIL_DESC_ALL_JS_PERMISSION),                            JavaSecUI_getHelpURL(CAPS_TARGET_URL_ALL_JS_PERMISSION),                            targetPtrArray);  target->registerTarget();  return PR_TRUE;}