diff options
author | Raghav <rmuddur@gmail.com> | 2016-12-04 16:29:38 -0500 |
---|---|---|
committer | Raghav <rmuddur@gmail.com> | 2016-12-04 16:29:38 -0500 |
commit | c1518adba86a3124c950fdc2399865d73afea8c4 (patch) | |
tree | aa49603356d0593058f3ced787951e3bebc77e02 /python/tidy/servo_tidy_tests/test_tidy.py | |
parent | 7c346e0d943fd518031437bcc7d10fee16213ff3 (diff) | |
download | servo-c1518adba86a3124c950fdc2399865d73afea8c4.tar.gz servo-c1518adba86a3124c950fdc2399865d73afea8c4.zip |
Redesign CookieStorage and Implement Leave Secure Cookie Alone
CookieStorage has been refactored to use HashMap with base domain as the
key. Values of hashmap is vector of cookies.
CookieStorage now has max_per_host which restricts maximum cookies that
can be added per base domain.
Cookie eviction doesnot take place if max_per_host is not reached.
Cookie eviction logic implemented here does following steps
1) Evict all expired cookies
2) Remove oldest accessed non-secure cookie If any
3) When no non-secure cookie exist, remove oldest accessed secure cookie
if new cookie being added is secure. Else ignore new cookie
Diffstat (limited to 'python/tidy/servo_tidy_tests/test_tidy.py')
0 files changed, 0 insertions, 0 deletions