diff --git a/chrome/content/zotero/standalone/basicViewer.js b/chrome/content/zotero/standalone/basicViewer.js index e0381f3a9d..b3eef89278 100644 --- a/chrome/content/zotero/standalone/basicViewer.js +++ b/chrome/content/zotero/standalone/basicViewer.js @@ -48,10 +48,10 @@ window.addEventListener("load", /*async */function() { //browser.docShellIsActive = false; // align page title with title of shown document - browser.addEventListener("pageshow", function() { - document.title = browser.contentDocument.title || browser.contentDocument.location.href; - }, false); - + browser.addEventListener('pagetitlechanged', () => { + document.title = browser.contentTitle || browser.currentURI.spec; + }); + // Load URI passed in as nsISupports .data via openWindow() browser.loadURI( window.arguments[0], diff --git a/chrome/content/zotero/standalone/basicViewer.xhtml b/chrome/content/zotero/standalone/basicViewer.xhtml index df48975e6b..7d29229c79 100644 --- a/chrome/content/zotero/standalone/basicViewer.xhtml +++ b/chrome/content/zotero/standalone/basicViewer.xhtml @@ -170,7 +170,8 @@ type="content" flex="1" remote="false" - disableglobalhistory="true"/> + disableglobalhistory="true" + maychangeremoteness="true"/>