Allow session history in a hidden browser

Allows loaded pages to use window.history object without triggering
NS_ERROR_FAILURE
This commit is contained in:
Tom Najdek 2020-02-15 13:21:38 +01:00 committed by Dan Stillman
parent 804a898c98
commit 8f1acad2d8

View file

@ -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;