diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-12-04 15:30:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-04 15:30:46 -0800 |
commit | b05c27cb58e8d625f4f436b6e9e1f0c29e908f21 (patch) | |
tree | 918b192468553c103b2f3800c2088cbcc368ba2d /python/tidy/servo_tidy_tests/test_tidy.py | |
parent | 07a3e9b2266c87493cb70c6f50e36a0d2dfe8a66 (diff) | |
parent | c1518adba86a3124c950fdc2399865d73afea8c4 (diff) | |
download | servo-b05c27cb58e8d625f4f436b6e9e1f0c29e908f21.tar.gz servo-b05c27cb58e8d625f4f436b6e9e1f0c29e908f21.zip |
Auto merge of #14445 - mrnayak:netSecurity, r=jdm
Redesign CookieStorage and Implement Leave Secure Cookie Alone
CookieStorage has been refactored to use HashMap with the base domain as the key. Values of hashmap are vector of cookies.
CookieStorage now has max_per_host which restricts maximum cookies that can be added per base domain.
Cookie eviction does not 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 exists, remove oldest accessed secure cookie if new cookie being added is secure. Else ignore new cookie
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).
<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14445)
<!-- Reviewable:end -->
Diffstat (limited to 'python/tidy/servo_tidy_tests/test_tidy.py')
0 files changed, 0 insertions, 0 deletions