There are 2 files: index.html
and print.html
First one contains a button that opens print.html
using simple command:
window.open("print.html", "_blank", "menubar=yes,toolbar=yes,status,scrollbars,resizable");
print.html
contains only one button that opens print preview dialog:
<button onclick="window.print();">
The problem appears when print preview dialog is opened. In this case any action on index.html
- i.e. the other file that initiate ajax request - is temporary blocked and put into queue. And only when preview is closed browser fires all requests.
I can see it only in Google Chrome (24.0.1312.52 m).
Can anybody confirm that this is Chrome's bug?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…