From 671aba950c0464a24320edcd3954155778c2ca60 Mon Sep 17 00:00:00 2001 From: topkoa Date: Sun, 12 Jul 2026 20:08:48 -0400 Subject: [PATCH] chore(panes): drop the leftover adoption diagnostics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A ~15-line console.info dumping computed styles, sizes, child counts and the element's inline style on every single pop-out. It was instrumentation written to chase the "panel comes home dead" bug, and it should have gone out with the rest of the debugging — it survived the cleanup. Removed rather than downgraded to console.debug: nothing here is worth keeping even behind a flag. The failures it was built to diagnose are all handled and commented now, and the paths that can still go wrong (window never loads, adopt throws) already log a console.error that says what happened. Signed-off-by: topkoa --- static/panes/pane-window-host.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/static/panes/pane-window-host.js b/static/panes/pane-window-host.js index 59cecc6..4201a64 100644 --- a/static/panes/pane-window-host.js +++ b/static/panes/pane-window-host.js @@ -188,27 +188,6 @@ w.addEventListener('beforeunload', () => { if (panes.isOpen(spec.id)) panes.close(spec.id); }); - - // Measure LATE. The pane window has not laid out yet at this point (it is - // still being created and shown), so anything read now reports 0x0 whether - // or not there is a real problem. - setTimeout(() => { - if (w.closed || !el.isConnected) return; - const view = doc.defaultView; - const cs = view.getComputedStyle(el); - const rootCs = view.getComputedStyle(root); - console.info('[panes] adopted', spec.id, - '| el:', el.id || el.className, - '| size:', el.offsetWidth + 'x' + el.offsetHeight, - '| display:', cs.display, '| visibility:', cs.visibility, '| opacity:', cs.opacity, - '| position:', cs.position, '| w/h:', cs.width + '/' + cs.height, - '| children:', el.childElementCount, - '| hidden attr:', el.hasAttribute('hidden'), - '| inline style:', el.getAttribute('style') || '(none)', - '| root size:', root.offsetWidth + 'x' + root.offsetHeight, '/', rootCs.display, - '| window inner:', view.innerWidth + 'x' + view.innerHeight, - '| styles:', doc.querySelectorAll('link[rel="stylesheet"], style').length); - }, 400); } function place(spec, el) {