cookperm.txt destroyed after allowing stylesheet image load, r=valeski, sr=alecf, a=vishy
git-svn-id: svn://10.0.0.236/trunk@93064 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4bf66aa6f7
commit
9083f705c6
@ -168,8 +168,12 @@ IMAGE_CheckForPermission
|
||||
/* use common routine to make decision */
|
||||
PRUnichar * message = CKutil_Localize(NS_LITERAL_STRING("PermissionToAcceptImage").get());
|
||||
PRUnichar * new_string = nsTextFormatter::smprintf(message, hostname ? hostname : "");
|
||||
*permission = Permission_Check(0, hostname, IMAGEPERMISSION,
|
||||
image_GetWarningPref(), new_string);
|
||||
if (NS_SUCCEEDED(PERMISSION_Read())) {
|
||||
*permission = Permission_Check(0, hostname, IMAGEPERMISSION,
|
||||
image_GetWarningPref(), new_string);
|
||||
} else {
|
||||
*permission = PR_TRUE;
|
||||
}
|
||||
PR_FREEIF(new_string);
|
||||
Recycle(message);
|
||||
return NS_OK;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user