mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 14:57:32 +09:00
Issue #1289 - Part 3: Update tests.
This commit is contained in:
parent
79593d40e1
commit
08a2dbad4c
9 changed files with 46 additions and 5 deletions
|
|
@ -28,6 +28,7 @@ function add_tests() {
|
|||
PRErrorCodeSuccess, true);
|
||||
|
||||
add_test(() => {
|
||||
Services.prefs.setBoolPref("security.cert_pinning.hpkp.enabled", true);
|
||||
Services.prefs.setIntPref("security.cert_pinning.enforcement_level", 1);
|
||||
Services.prefs.setBoolPref("security.cert_pinning.process_headers_from_non_builtin_roots", true);
|
||||
let uri = Services.io.newURI("https://ocsp-stapling-must-staple-ee-with-must-staple-int.example.com",
|
||||
|
|
@ -45,6 +46,7 @@ function add_tests() {
|
|||
|
||||
// Clear accumulated state.
|
||||
ssservice.removeState(Ci.nsISiteSecurityService.HEADER_HPKP, uri, 0);
|
||||
Services.prefs.clearUserPref("security.cert_pinning.hpkp.enabled");
|
||||
Services.prefs.clearUserPref("security.cert_pinning.process_headers_from_non_builtin_roots");
|
||||
Services.prefs.clearUserPref("security.cert_pinning.enforcement_level");
|
||||
run_next_test();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue