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:
parent
804a898c98
commit
8f1acad2d8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue