From 8f1acad2d8c07912b52182b79b97063ed1630098 Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Sat, 15 Feb 2020 13:21:38 +0100 Subject: [PATCH] Allow session history in a hidden browser Allows loaded pages to use window.history object without triggering NS_ERROR_FAILURE --- chrome/content/zotero/xpcom/zotero.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 3dc25709d6..80b5c540c7 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -2053,7 +2053,7 @@ Zotero.Browser = new function() { // Create a hidden browser var hiddenBrowser = win.document.createElement("browser"); hiddenBrowser.setAttribute('type', 'content'); - hiddenBrowser.setAttribute('disablehistory', 'true'); + hiddenBrowser.setAttribute('disableglobalhistory', 'true'); win.document.documentElement.appendChild(hiddenBrowser); // Disable some features hiddenBrowser.docShell.allowAuth = false;