New Chrome doesn't wait for response from print dialogue

864 views
Skip to first unread message

Saleem Salik

unread,
Feb 22, 2017, 11:55:38 AM2/22/17
to Google Chrome Developer Tools
Hello,
I had written my code to print n number of different documents on single click. Which was working fine few months ago in chrome. (Java script used to stop until print dialogue is open). But chrome has updated and now it doesn't wait for response from print dialogue and instantly closes the window as next line is: 
window.close().

Some said system print dialogue does the required working... Does it really do?

For that I have seen a lot of threads suggesting to add " --disable-print-preview" or " --arg --disable-print-preview" at the end of target of the shortcut of chrome but nothing worked for me. I could not get the system print dialogue from code 

Regards
Saleem Salik

PhistucK

unread,
Feb 22, 2017, 12:07:48 PM2/22/17
to Google Chrome Developer Tools
This is a pretty old bug, not from the last few months.

Note that this is not the place for general web development question, this group only discusses the Developer Tools feature.

For printing without a prompt, you can use --kiosk --kiosk-printing (it will open Chrome in full screen, though).

--disable-print-preview seems to still be supported. I am not sure why it does not work for you. For me, on Windows 7, it shows the system print dialog in response to window.print();.
Though it does not show up call window.close(); right away, right. This may or may not be a bug.

You can search crbug.com for an existing issue and star it. If you cannot find one, file a new issue using the "New issue" link on the same page.
Please, do not add a "+1" or "Me too" or "Confirmed" (or similar) comment. It just wastes the time of Chrome engineers and sends unnecessary e-mails to all of the people who starred the issue.

You can reply with a link to the found or created issue and might get triaged (and fixed) faster.

Thank you.



PhistucK

--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/72ce69b4-79e5-4b3f-ac22-3170cd104923%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages