Chrome browser unable to make a server call when print preview is opened

半腔热情 提交于 2020-01-20 05:13:27

问题


I have a print preview page in which I open a page and execute print function after rendering a page. Firefox opens a popup for this and stalls the browser until we do some action cancel/print. But the chrome browser open a left print panel which contains the options for the print.

The strange thing about this is when the page is in the preview, the parent application cannot make a server call. It will stop all the calls of the parent application until the print is done/cancelld. I checked this behavior in GMAIL also, and it stalls that as well. Ex, click print icon on a mail and it opens the print preview. Change tab to the gmail and try to open all the tabs. Some will work as server call is not there, but some like spam will not.

Also this happens only for the parent application and other tabs remain unaffected.

Can anyone figure out a workaround for this so that the print page does not know its parent and the print functionality works without stalling the main application.

thanks.


回答1:


I posted to google about this issue and as per them, we should be stopping the application from making an http call while the print preview page is open. They are not going to do anything about it. Plus, they mention that firefox also behaves in same manner, but it blocks the whole browser until you close the print option dialog box.

There was one more issue, that on dragging the print page to a new window, it used to hang the application, they didn't mention that they fixed that, but I was unable to reproduce that bug in the next chrome update.:)



来源:https://stackoverflow.com/questions/22715916/chrome-browser-unable-to-make-a-server-call-when-print-preview-is-opened

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!