Bug 195769

Summary: Active EventSource prevents window.print() from working in Safari 12
Product: WebKit Reporter: Daniel LeCheminant <danlec>
Component: PrintingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 12   
Hardware: Mac   
OS: macOS 10.13   
URL: https://jsfiddle.net/43ufcxkw/

Daniel LeCheminant
Reported 2019-03-14 15:06:46 PDT
Repro: 1. Visit a site with an active event source, e.g. https://simpl.info/eventsource/ 2. Run window.print() from the console Expected: Print dialog opens, or some indication that a print is being attempted Actual: Nothing happens Related: I expect this is also the cause of https://github.com/launchdarkly/js-client/issues/121
Attachments
Daniel LeCheminant
Comment 1 2019-03-14 15:12:23 PDT
If it's helpful, I have a simple repro at https://jsfiddle.net/43ufcxkw/ The print on that page works in Chrome 72, but does not work in Safari 12.
Daniel LeCheminant
Comment 2 2019-03-15 09:53:59 PDT
As a workaround, document.execCommand('print') does appear to work in Safari.
Radar WebKit Bug Importer
Comment 3 2019-03-16 13:24:51 PDT
Note You need to log in before you can comment on or make changes to this bug.