Fix bug 24378 All DOM security checks inadvertently disabled
r=mstoltz,rogerl;a=jar git-svn-id: svn://10.0.0.236/trunk@58269 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1011,7 +1011,7 @@ nsScriptSecurityManager::CheckPermissions(JSContext *aCx, JSObject *aObj,
|
||||
return NS_ERROR_FAILURE;
|
||||
PRBool enabled;
|
||||
if (NS_SUCCEEDED(prefs->GetBoolPref("security.checkdomprops", &enabled)) &&
|
||||
enabled)
|
||||
!enabled)
|
||||
{
|
||||
*aResult = PR_TRUE;
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user