TEMP: Don't use hiddenDOMWindow for editable-text sizing

Causes an error on Linux.
This commit is contained in:
Abe Jellinek 2025-07-01 11:03:19 -04:00
parent 0d830a5185
commit 2825151467

View file

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