[tbb-commits] [tor-browser/tor-browser-68.1.0esr-9.0-2] fixup! Bug 24653: merge securityLevel.properties into torbutton.dtd

gk at torproject.org gk at torproject.org
Mon Sep 16 13:41:46 UTC 2019


commit 7baed647f56e5d3e7c92eaffadb1c18c07aabe7f
Author: Alex Catarineu <acat at torproject.org>
Date:   Mon Sep 16 13:01:32 2019 +0200

    fixup! Bug 24653: merge securityLevel.properties into torbutton.dtd
---
 browser/components/securitylevel/content/securityLevel.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/browser/components/securitylevel/content/securityLevel.js b/browser/components/securitylevel/content/securityLevel.js
index 9dc23d97855d..9965046a7d15 100644
--- a/browser/components/securitylevel/content/securityLevel.js
+++ b/browser/components/securitylevel/content/securityLevel.js
@@ -9,7 +9,11 @@ XPCOMUtils.defineLazyModuleGetters(this, {
 });
 
 XPCOMUtils.defineLazyGlobalGetters(this, ["DOMParser"]);
-XPCOMUtils.defineLazyGetter(this, "domParser", () => new DOMParser());
+XPCOMUtils.defineLazyGetter(this, "domParser", () => {
+  const parser = new DOMParser();
+  parser.forceEnableDTD();
+  return parser;
+});
 
 /*
  Security Level Strings



More information about the tbb-commits mailing list