From 43d9d604a632b7544da45367a213bb7931cb8b7d Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 14 Feb 2024 11:25:44 -0500 Subject: [PATCH] Fix blockRemoteResources passed to wrong method After OOPification of HiddenBrowser.jsm. The constructor accepts blockRemoteResources, the load() method ignores it. --- chrome/content/zotero/xpcom/fulltext.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index 659b934aba..48f5868f8a 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -1607,8 +1607,8 @@ Zotero.Fulltext = Zotero.FullText = new function(){ var pageData; try { let url = Zotero.File.pathToFileURI(path); - browser = new HiddenBrowser(); - await browser.load(url, { blockRemoteResources: true }); + browser = new HiddenBrowser({ blockRemoteResources: true }); + await browser.load(url); pageData = await browser.getPageData(['characterSet', 'bodyText']); } finally {