https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 --- Comment #5 from Christopher Brannon <cbrannon@cdalibrary.org> --- My testing produced these results: This is the javascript the popup window generates: window.addEventListener('load', function() { window.print(); window.onafterprint = function () { window.close(); } }); Testing shows: afterprint fires correctly. window.close() works when run manually. Replacing the script with: window.onafterprint = function() { setTimeout(() => { window.close(); }, 100); }; window.print(); results in the window closing successfully. This appears to be a timing issue involving window.print() and registration/execution of the afterprint handler in Firefox. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.