* 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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user