summaryrefslogtreecommitdiff
path: root/devtools/client
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-14 12:17:00 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-14 12:17:00 +0100
commitc1e75435f9be3edc1fe53d2f09cd92bddeef639e (patch)
tree617a6230d01f2d4100b88eb67ed0dd0df66322ed /devtools/client
parentcea290ac2522df23f2554081205d7442c747b97e (diff)
downloadaura-central-c1e75435f9be3edc1fe53d2f09cd92bddeef639e.tar.gz
Issue mcp-graveyard/UXP%1289 - Part 3: Update tests.
Diffstat (limited to 'devtools/client')
-rw-r--r--devtools/client/webconsole/test/browser_webconsole_hpkp_invalid-headers.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/devtools/client/webconsole/test/browser_webconsole_hpkp_invalid-headers.js b/devtools/client/webconsole/test/browser_webconsole_hpkp_invalid-headers.js
index 3ee33669d..39870fd54 100644
--- a/devtools/client/webconsole/test/browser_webconsole_hpkp_invalid-headers.js
+++ b/devtools/client/webconsole/test/browser_webconsole_hpkp_invalid-headers.js
@@ -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();