Bug 1374443 - Decrease HSTS priming timeout to 2s r=ckerschb

MozReview-Commit-ID: 7brYAUXwHvE

--HG--
extra : rebase_source : 4ef6f27cc855b828ac742f2990dc12668bd910aa
This commit is contained in:
Kate McKinley 2017-06-19 14:35:27 -07:00
Родитель 2444f457b5
Коммит 9108666ee6
3 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -5655,9 +5655,9 @@ pref("security.mixed_content.use_hsts", true);
#endif
// Approximately 1 week default cache for HSTS priming failures, in seconds
pref("security.mixed_content.hsts_priming_cache_timeout", 604800);
// Force the channel to timeout in 3 seconds if we have not received
// Force the channel to timeout in 2 seconds if we have not received
// expects a time in milliseconds
pref("security.mixed_content.hsts_priming_request_timeout", 3000);
pref("security.mixed_content.hsts_priming_request_timeout", 2000);
// TODO: Bug 1324406: Treat 'data:' documents as unique, opaque origins
// If true, data: URIs will be treated as unique opaque origins, hence will use

Просмотреть файл

@ -31,8 +31,9 @@ NS_IMPL_ISUPPORTS(HSTSPrimingListener, nsIStreamListener,
nsIRequestObserver, nsIInterfaceRequestor,
nsITimerCallback)
// default to 3000ms, same as the preference
uint32_t HSTSPrimingListener::sHSTSPrimingTimeout = 3000;
// default to 2000ms, same as the preference
// security.mixed_content.hsts_priming_request_timeout
uint32_t HSTSPrimingListener::sHSTSPrimingTimeout = 2000;
HSTSPrimingListener::HSTSPrimingListener(nsIHstsPrimingCallback* aCallback)

Просмотреть файл

@ -137,6 +137,6 @@ pref("security.mixed_content.use_hsts", true);
#endif
// Approximately 1 week default cache for HSTS priming failures, in seconds
pref ("security.mixed_content.hsts_priming_cache_timeout", 604800);
// Force the channel to timeout in 3 seconds if we have not received
// Force the channel to timeout in 2 seconds if we have not received
// expects a time in milliseconds
pref ("security.mixed_content.hsts_priming_request_timeout", 3000);
pref ("security.mixed_content.hsts_priming_request_timeout", 2000);