From 0f2690eb7539b12ae11d2a4b5f08e15a7add854a Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 2 Jul 2025 15:44:04 -0400 Subject: [PATCH] fx140: Migrate hiddenDOMWindow in style.js XSLTProcessor is available in the global scope now. --- chrome/content/zotero/xpcom/style.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/style.js b/chrome/content/zotero/xpcom/style.js index 7b5e496987..2ce7886342 100644 --- a/chrome/content/zotero/xpcom/style.js +++ b/chrome/content/zotero/xpcom/style.js @@ -768,9 +768,6 @@ Zotero.Style.prototype.getCiteProc = function (locale, format, automaticJournalA let updateXSLT = new DOMParser() .parseFromString(xsl, "application/xml"); - // XSLTProcessor is no longer available in XPCOM, so get from hidden window - let XSLTProcessor = Cc["@mozilla.org/appshell/appShellService;1"] - .getService(Ci.nsIAppShellService).hiddenDOMWindow.XSLTProcessor; // load XSLT file into XSLTProcessor Zotero.Styles.xsltProcessor = new XSLTProcessor(); Zotero.Styles.xsltProcessor.importStylesheet(updateXSLT);