From abfa09df51cc7a71e34afb77b459a2e24aa64ee4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 4 Aug 2020 13:00:07 -0400 Subject: [PATCH] fx-compat: loadURI() signature change in HTTP.loadDocuments() --- chrome/content/zotero/xpcom/http.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js index ce29e7ad4d..e001fe6eb9 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -1237,7 +1237,14 @@ Zotero.HTTP = new function() { currentURL++; try { Zotero.debug("Zotero.HTTP.loadDocuments: Loading " + url); - hiddenBrowser.loadURI(url); + let loadURIOptions = { + triggeringPrincipal: null, + csp: null, + loadFlags: Components.interfaces.nsIWebNavigation.LOAD_FLAGS_BYPASS_HISTORY, + referrerInfo: null, + postData: null, + }; + hiddenBrowser.loadURI(url, loadURIOptions); } catch(e) { if (onError) { onError(e);