window.open set to auto print crashes if opened window is closed
-
A Former User last edited by
I submitted a help ticket, but it looks like no way to see if it's going to be worked on or acknowledged.
if you have an html page with a simple text input and a button which calls window.open() to another html page, which has a window.print() fire on load, and you close that new window without printing or canceling the print dialog. It will then crash the original page unless you go to another tab and then go back.
minimum code:
index body -
<input type="Text" name="inpt1" /><br/> <input type="button" value="Print" onclick="javascript:window.open('popup.html', '', 'width=690,height=465,resizable=1,scrollbars=0,menubar=0,status=0');" />
popup -
<script type="text/javascript"> window.print(); </script>
That's enough for it to crash.