打印预览打开时,Chrome浏览器无法进行服务器调用 [英] Chrome browser unable to make a server call when print preview is opened

查看:1079
本文介绍了打印预览打开时,Chrome浏览器无法进行服务器调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个打印预览页面,在该页面中,打开页面并在渲染页面后执行打印功能。 Firefox会为此打开一个弹出窗口,并停止浏览器,直到我们执行取消/打印操作。
但是Chrome浏览器打开了一个包含打印选项的左侧打印面板。

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.

奇怪的是,当页面处于预览状态时,父应用程序无法进行服务器调用。它将停止父应用程序的所有调用,直到完成打印/取消打印。
我也在GMAIL中检查了这种行为,并且也阻止了这一点。
Ex,点击邮件上的打印图标,打开预览。将选项卡更改为Gmail并尝试打开所有选项卡。有些会工作,因为服务器调用不存在,但一些像垃圾邮件不会。

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.

感谢。

推荐答案

我发布到谷歌关于这个问题,并根据他们,我们应该停止应用程序在打印预览页面打开时进行http呼叫。他们不会对此做任何事情。另外,他们提到firefox的行为方式也是一样的,但它会阻止整个浏览器,直到您关闭打印选项对话框。

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.

还有一个问题,即拖动打印页面到一个新窗口,它用于挂起应用程序,他们没有提到他们修复了这个问题,但是我无法在下一次chrome更新中重现该错误。:)

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.:)

这篇关于打印预览打开时,Chrome浏览器无法进行服务器调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆