forked from mirrors/gecko-dev
Refactored HSTSList to use HashMap, where the key of HashMap is the base domain. Every time when we check if a host is secure, we find the base domain of the host and get a vector of HSTS entries associated with the base domain. While this will not give O(1) look up time, we would have a smaller list to iterate for every lookup. I have added one unit test to validate `HashMap` changes. <!-- Please describe your changes on the following line: --> --- <!-- 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 - [X] These changes fix #14756 <!-- Either: --> - [X] There are tests for these changes OR <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: b06f4aec67ff93b1d667a5817084b0952e56664e |
||
|---|---|---|
| .. | ||
| fetch | ||
| blob_loader.rs | ||
| Cargo.toml | ||
| chrome_loader.rs | ||
| connector.rs | ||
| content_blocker.rs | ||
| cookie.rs | ||
| cookie_storage.rs | ||
| data_loader.rs | ||
| filemanager_thread.rs | ||
| hsts.rs | ||
| http_loader.rs | ||
| image_cache_thread.rs | ||
| lib.rs | ||
| mime_classifier.rs | ||
| resource_thread.rs | ||
| storage_thread.rs | ||
| websocket_loader.rs | ||