https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44306 --- Comment #2 from babar junaid <babarjunaid1122@gmail.com> --- I tried to reproduce this on main (186bbe7) in koha-testing-docker and could not, in Google Chrome 156 on Linux. Steps: patron with two checkouts, Print > Print slip, then in the print dialog either Save as PDF or Cancel. Without the patch, the slip tab closed by itself in both cases, as soon as the dialog closed (printed: the PDF had the full slip; cancelled: closed at once). An event trace in the slip tab shows why: in this Chrome, window.print() returns immediately, the page is paused while the dialog is open, and afterprint fires when the dialog closes, after onafterprint has been assigned, so the existing handler closes the tab. With the patch, the behaviour was the same, and the tab was closed by the onafterprint handler, not by the new timer. Which browser, version and operating system shows the tab staying open? I can retest there before signing off. -- You are receiving this mail because: You are watching all bug changes.