gecko-dev/netwerk
Kate McKinley c57d400961 Bug 1246540 - HSTS Priming Proof of Concept. r=ckerschb, r=mayhemer, r=jld, r=smaug, r=dkeeler, r=jmaher, p=ally
HSTS priming changes the order of mixed-content blocking and HSTS
upgrades, and adds a priming request to check if a mixed-content load is
accesible over HTTPS and the server supports upgrading via the
Strict-Transport-Security header.

Every call site that uses AsyncOpen2 passes through the mixed-content
blocker, and has a LoadInfo. If the mixed-content blocker marks the load as
needing HSTS priming, nsHttpChannel will build and send an HSTS priming
request on the same URI with the scheme upgraded to HTTPS. If the server
allows the upgrade, then channel performs an internal redirect to the HTTPS URI,
otherwise use the result of mixed-content blocker to allow or block the
load.

nsISiteSecurityService adds an optional boolean out parameter to
determine if the HSTS state is already cached for negative assertions.
If the host has been probed within the previous 24 hours, no HSTS
priming check will be sent.

MozReview-Commit-ID: ES1JruCtDdX

--HG--
extra : rebase_source : 2ac6c93c49f2862fc0b9e595eb0598cd1ea4bedf
2016-09-27 11:27:00 -04:00
..
base Bug 1246540 - HSTS Priming Proof of Concept. r=ckerschb, r=mayhemer, r=jld, r=smaug, r=dkeeler, r=jmaher, p=ally 2016-09-27 11:27:00 -04:00
build Bug 1244227 - Add nsIThrottledInputChannel.idl and implement. r=mcmanus 2016-08-23 07:36:52 -06:00
cache Bug 1301629 - Fix incorrect parameter name in comments. r=ettseng 2016-09-14 19:57:20 +02:00
cache2 Bug 1231565 - (Part 3) Make alt-data responses report the correct content length r=michal 2016-09-27 10:26:00 +02:00
cookie Bug 1302824 - Avoid duplicating domain-matching and path-matching logic in cookie service. r=ehsan 2016-09-19 15:40:12 -04:00
dns Bug 1296464 - [FlyWeb] Machines with multiple interfaces cause duplicate advertisements on all interfaces;r=djvj 2016-09-23 19:53:11 -04:00
ipc Bug 1246540 - HSTS Priming Proof of Concept. r=ckerschb, r=mayhemer, r=jld, r=smaug, r=dkeeler, r=jmaher, p=ally 2016-09-27 11:27:00 -04:00
locales Bug 1289135 - Fix typos in the properties files r=Ehsan 2016-07-25 16:34:38 +02:00
mime Bug 1195723: [flac] P10. Add media sniffer for flac file. r=kamidphish 2016-08-17 15:47:39 +10:00
protocol Bug 1246540 - HSTS Priming Proof of Concept. r=ckerschb, r=mayhemer, r=jld, r=smaug, r=dkeeler, r=jmaher, p=ally 2016-09-27 11:27:00 -04:00
sctp Bug 1018486 - Part 8: Various other changes, r=smaug 2016-09-07 10:50:45 -04:00
socket Bug 1297276 - Fix another instance of mozilla/unused.h that snuck in. 2016-08-25 09:31:35 -04:00
srtp Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
standalone Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
streamconv Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm. 2016-09-02 17:12:24 +10:00
system Bug 1292323 - Update WrapForJNI usages; r=snorp 2016-08-12 23:15:52 -04:00
test Bug 1231565 - (Part 4) Test that large alt-data content can be saved, and that streaming works r=honzab 2016-09-27 10:26:32 +02:00
wifi Bug 1296176 - Replace PR_MIN with std::min in netwerk. r=jesup,mcmanus 2016-08-22 14:37:42 -07:00
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
necko-config.h.in