diff --git a/chrome/content/zotero/elements/editableText.js b/chrome/content/zotero/elements/editableText.js index fc5c032734..cc7f078c8f 100644 --- a/chrome/content/zotero/elements/editableText.js +++ b/chrome/content/zotero/elements/editableText.js @@ -64,8 +64,9 @@ // getBoundingClientRect(), offsetWidth, scrollWidth, etc. on an element // in this document from sizeToContent() will, bizarrely, cause things // in the metadata table to overlap - // TODO: Revisit after next Fx platform upgrade - let doc = Services.appShell.hiddenDOMWindow.document; + // TEMP: fx140: Use document + // TODO: Check if this bug is still present and restore hiddenDOMWindow if necessary + let doc = document; // Services.appShell.hiddenDOMWindow.document; let span = doc.createElement('span'); span.style.position = 'absolute'; span.style.visibility = 'hidden';