mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +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
|
|
@ -14,14 +14,18 @@ const SJS_URL = "https://example.com/browser/devtools/client/webconsole/" +
|
|||
"test/test_hpkp-invalid-headers.sjs";
|
||||
const LEARN_MORE_URI = "https://developer.mozilla.org/docs/Web/Security/" +
|
||||
"Public_Key_Pinning" + DOCS_GA_PARAMS;
|
||||
const HPKP_ENABLED_PREF = "security.cert_pinning.hpkp.enabled";
|
||||
const NON_BUILTIN_ROOT_PREF = "security.cert_pinning.process_headers_from_" +
|
||||
"non_builtin_roots";
|
||||
|
||||
add_task(function* () {
|
||||
registerCleanupFunction(() => {
|
||||
Services.prefs.clearUserPref(HPKP_ENABLED_PREF);
|
||||
Services.prefs.clearUserPref(NON_BUILTIN_ROOT_PREF);
|
||||
});
|
||||
|
||||
Services.prefs.setBoolPref(HPKP_ENABLED_PREF, true);
|
||||
|
||||
yield loadTab(TEST_URI);
|
||||
|
||||
let hud = yield openConsole();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue