From 535947c94f057eb30e8090c60bf72fd4410fe438 Mon Sep 17 00:00:00 2001 From: Georg Koppen Date: Mon, 24 Jul 2017 10:23:00 +0000 Subject: [PATCH] Bug 21321: Add test for .onion whitelisting --- .../test/unit/test_isOriginPotentiallyTrustworthy.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dom/security/test/unit/test_isOriginPotentiallyTrustworthy.js b/dom/security/test/unit/test_isOriginPotentiallyTrustworthy.js index 3b24d3038fcd7..158ca01569204 100644 --- a/dom/security/test/unit/test_isOriginPotentiallyTrustworthy.js +++ b/dom/security/test/unit/test_isOriginPotentiallyTrustworthy.js @@ -31,6 +31,11 @@ Services.prefs.setCharPref( "example.net,example.org" ); +Services.prefs.setBoolPref( + "dom.securecontext.whitelist_onions", + false +); + add_task(async function test_isOriginPotentiallyTrustworthy() { for (let [uriSpec, expectedResult] of [ ["http://example.com/", false], -- GitLab