* clean up nsScriptSecurityManager

* remove nsJSSecurityManager
* save principals in nsIChannels and nsIDocuments


git-svn-id: svn://10.0.0.236/trunk@45080 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
norris%netscape.com
1999-08-29 21:58:42 +00:00
parent e9b6f3bfd5
commit 3a6d863c13
48 changed files with 790 additions and 3290 deletions

View File

@@ -46,8 +46,7 @@ nsUserTarget::~nsUserTarget(void)
NS_IMETHODIMP
nsUserTarget::EnablePrivilege(nsIPrincipal * prin, void * data, nsIPrivilege * * result)
{
PRInt16 prinType;
prin->GetType(& prinType);
#if 0
PRInt16 privState = nsIPrivilege::PrivilegeState_Allowed;
PRInt16 privDuration = nsIPrivilege::PrivilegeDuration_Session;
if ((nsCapsGetRegistrationModeFlag()) && (prin != NULL)) {
@@ -59,5 +58,6 @@ nsUserTarget::EnablePrivilege(nsIPrincipal * prin, void * data, nsIPrivilege * *
}
}
* result = nsPrivilegeManager::FindPrivilege(privState, privDuration);
#endif
return NS_OK;
}