Modify default handling of cookiepolicy functions
It's more obvious this way that the default is to always accept cookies and not the other way around.
This commit is contained in:
parent
d4ac9fb6f4
commit
b87123ac9b
10
surf.c
10
surf.c
|
@ -485,12 +485,11 @@ cookiepolicy_get(void)
|
||||||
return WEBKIT_COOKIE_POLICY_ACCEPT_NEVER;
|
return WEBKIT_COOKIE_POLICY_ACCEPT_NEVER;
|
||||||
case '@':
|
case '@':
|
||||||
return WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY;
|
return WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY;
|
||||||
|
default: /* fallthrough */
|
||||||
case 'A':
|
case 'A':
|
||||||
default:
|
return WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
char
|
char
|
||||||
|
@ -501,12 +500,11 @@ cookiepolicy_set(const WebKitCookieAcceptPolicy p)
|
||||||
return 'a';
|
return 'a';
|
||||||
case WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY:
|
case WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY:
|
||||||
return '@';
|
return '@';
|
||||||
|
default: /* fallthrough */
|
||||||
case WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS:
|
case WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS:
|
||||||
default:
|
return 'A';
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'A';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
|
|
Loading…
Reference in New Issue