aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_wrapper.rs
diff options
context:
space:
mode:
authorRaghav <rmuddur@gmail.com>2016-12-29 12:55:31 +0530
committerRaghav <rmuddur@gmail.com>2016-12-29 12:55:31 +0530
commit6020b4c15c62f950346d6e446fb9a8ed04d05e13 (patch)
tree080b36d50ba0b0b82526f62c042a94c86dcb4f32 /components/script/layout_wrapper.rs
parent7e3c9e21978b638b8f17192500251843f3743d1c (diff)
downloadservo-6020b4c15c62f950346d6e446fb9a8ed04d05e13.tar.gz
servo-6020b4c15c62f950346d6e446fb9a8ed04d05e13.zip
Implement HSTS fetch step
Implemented step nine of the main fetch. If current URL scheme is 'HTTP' and current URL's host is domain and if current URL's host matched with Known HSTS Host Domain Name Matching results in either a superdomain match with an asserted includeSubDomains directive or a congruent match then we change request scheme to 'https'. This change has been made in method.rs A test case to validate this has been added in fetch.rs. For asserting https scheme, a https localhost was required. For this purpose I have created a self-signed certificate and refactored fetch-context and connector.rs to programmatically trust this certificate for running this test case.
Diffstat (limited to 'components/script/layout_wrapper.rs')
0 files changed, 0 insertions, 0 deletions