Commit 82f4a607 authored by Georg Koppen's avatar Georg Koppen
Browse files

Bug 21321: Add test for .onion whitelisting

parent a75ef66e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ XPCOMUtils.defineLazyServiceGetter(this, "gContentSecurityManager",

var prefs = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch);
prefs.setCharPref("dom.securecontext.whitelist", "example.net,example.org");
prefs.setBoolPref("dom.securecontext.whitelist_onions", false);

add_task(async function test_isOriginPotentiallyTrustworthy() {
  for (let [uriSpec, expectedResult] of [