<?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>225178</bug_id>
          
          <creation_ts>2021-04-28 17:47:34 -0700</creation_ts>
          <short_desc>Canceling a print request results in empty preview on subsequent requests - can hang Safari</short_desc>
          <delta_ts>2021-05-05 17:48:11 -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 14</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 10.14</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lou Mazz">l.mazz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aestes</cc>
    
    <cc>akeerthi</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1755261</commentid>
    <comment_count>0</comment_count>
    <who name="Lou Mazz">l.mazz</who>
    <bug_when>2021-04-28 17:47:34 -0700</bug_when>
    <thetext>1.  Open a wine list in my web app
2.  Try to print it…
    
      A.  The first time:  I get a print panel with the result in it.
            If I hit “preview as PDF”, I see it rendered just fine.
            I can view and close the preview window.
            THIS IS REPEATABLE.

      BUT

      B.  If i hit “Cancel” in the print form, the next time I try to print the
            wine list, I get a blank (and apparently intinitely long) preview panel.
            If I hit “Cancel”, I return, and get the same empty but infinite preview if I try to print again.

            IF I HIT “preview as PDF” and then try to cancel, IT HANGS SAFARI:

HERE&quot;S AN EXAMPLE FROM ANOTHER USER:

https://jasonday.github.io/printThis/#nada

Click &quot;See the demo&quot;
Click &quot;Print Kittens&quot; = first time OK, second time: nada.  Same symptoms as above</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1755340</commentid>
    <comment_count>1</comment_count>
    <who name="Lou Mazz">l.mazz</who>
    <bug_when>2021-04-29 04:07:50 -0700</bug_when>
    <thetext>https://jasonday.github.io/printThis/#nada

Safari  14.1 (14611.1.21.161.5)
macOS 10.14.6 (18G9028)

Click “Print Kittens” - first time, all is well.  Click “Cancel” on print panel.
                                 - second time, get “webpage is trying to print” message
                                   click “Print” - preview panel is blank, crash will occur if attempt to print blank panel


————————————

Safari 13.1.2 (13609.3.5.1.5)
MacOs 10.13.6 (17G14042)

Click “Print Kittens” - first time, all is well.  Click “Cancel” on print panel.
				 - second time, time, get “webpage is trying to print” message
                                   click “Print” - NO PRINT PANEL</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757200</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-05 17:48:11 -0700</bug_when>
    <thetext>&lt;rdar://problem/77584924&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>