[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-52.7.3esr-8.0-1] Bug 25331: Fix failing test from #18192



commit 292456846d8420e88b19664e36562cb4d6169776
Author: Georg Koppen <gk@xxxxxxxxxxxxxx>
Date:   Wed Apr 18 07:31:48 2018 +0000

    Bug 25331: Fix failing test from #18192
    
    This patch was written by mcs and brade
---
 .../tests/chrome/test_0790_check_certPinning_noUpdate.xul      | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/toolkit/mozapps/update/tests/chrome/test_0790_check_certPinning_noUpdate.xul b/toolkit/mozapps/update/tests/chrome/test_0790_check_certPinning_noUpdate.xul
index f5a97cf204ac..fcb571a4ddc6 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0790_check_certPinning_noUpdate.xul
+++ b/toolkit/mozapps/update/tests/chrome/test_0790_check_certPinning_noUpdate.xul
@@ -27,9 +27,13 @@ const TESTS = [ {
   buttonClick: "finish"
 } ];
 
+const kCertPinningEnforcementLevelPref = "security.cert_pinning.enforcement_level";
+
 function runTest() {
   debugDump("entering");
 
+  SpecialPowers.setIntPref(kCertPinningEnforcementLevelPref, 2); // strict
+
   // Set the update URL.
   // https://badchain.include-subdomains.pinning.example.com is preconfigured
   // by the test framework for use in key pinning tests.
@@ -43,6 +47,12 @@ function runTest() {
   gUP.checkForUpdates();
 }
 
+function finishTest()
+{
+  SpecialPowers.clearUserPref(kCertPinningEnforcementLevelPref);
+  finishTestDefault();
+}
+
 function checkErrorCode() {
   // From security/manager/ssl/tests/unit/head_psm.js:
   const MOZILLA_PKIX_ERROR_BASE = Ci.nsINSSErrorsService.MOZILLA_PKIX_ERROR_BASE;

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits