<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>195769</bug_id>
          
          <creation_ts>2019-03-14 15:06:46 -0700</creation_ts>
          <short_desc>Active EventSource prevents window.print() from working in Safari 12</short_desc>
          <delta_ts>2019-03-16 13:24:51 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Printing</component>
          <version>Safari 12</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.13</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://jsfiddle.net/43ufcxkw/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel LeCheminant">danlec</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1516672</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel LeCheminant">danlec</who>
    <bug_when>2019-03-14 15:06:46 -0700</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1516686</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel LeCheminant">danlec</who>
    <bug_when>2019-03-14 15:12:23 -0700</bug_when>
    <thetext>If it&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1517002</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel LeCheminant">danlec</who>
    <bug_when>2019-03-15 09:53:59 -0700</bug_when>
    <thetext>As a workaround, document.execCommand(&apos;print&apos;) does appear to work in Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1517462</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-03-16 13:24:51 -0700</bug_when>
    <thetext>&lt;rdar://problem/48955771&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>