Bug 195769
Summary: | Active EventSource prevents window.print() from working in Safari 12 | ||
---|---|---|---|
Product: | WebKit | Reporter: | Daniel LeCheminant <danlec> |
Component: | Printing | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Daniel LeCheminant
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
As a workaround, document.execCommand('print') does appear to work in Safari.
Radar WebKit Bug Importer
<rdar://problem/48955771>