When in our webapp a Chrome subwindow is launched, either by window.open()
or by user clicking a link with target="_blank"
, then in that subwindow, body onload="window.print()"
to auto-launch the print dialog and print preview, then user CLOSES the print/subwindow instead of clicking cancel, the parent window gets completely hosed. Specifically:
- No javascript events will fire
- No links are clickable
- Hitting F5 shows the little spinner in the tab but the page never reloads.
- The parent window is truly dead -- all you can do is close it.
If you click cancel on the subwindow (where the print-preview is launched via window.print()
) everything is fine. But if user closes the window, all the craziness happens.
This is a known bug in Chrome:
Does anyone know of a workaround for this?