Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
299 views
in Technique[技术] by (71.8m points)

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

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...