implement a better test for determining foreign images
git-svn-id: svn://10.0.0.236/trunk@64199 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
7840169464
commit
4d5993fe17
@ -1066,6 +1066,9 @@ permission_Check
|
||||
}
|
||||
}
|
||||
|
||||
PRIVATE int
|
||||
cookie_SameDomain(char * currentHost, char * firstHost);
|
||||
|
||||
PUBLIC nsresult
|
||||
Image_CheckForPermission(char * hostname, char * firstHostname, PRBool &permission) {
|
||||
|
||||
@ -1083,7 +1086,8 @@ Image_CheckForPermission(char * hostname, char * firstHostname, PRBool &permissi
|
||||
/* try to make a decision based on pref settings */
|
||||
if ((image_GetBehaviorPref() == COOKIE_DontUse) ||
|
||||
(image_GetBehaviorPref() == COOKIE_DontAcceptForeign &&
|
||||
PL_strcmp(hostname, firstHostname))) {
|
||||
// PL_strcmp(hostname, firstHostname))) {
|
||||
!cookie_SameDomain(hostname, firstHostname))) {
|
||||
permission = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user