Bug 225178 - Canceling a print request results in empty preview on subsequent requests - can hang Safari
Summary: Canceling a print request results in empty preview on subsequent requests - c...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Printing (show other bugs)
Version: Safari 14
Hardware: Mac (Intel) macOS 10.14
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-04-28 17:47 PDT by Lou Mazz
Modified: 2021-05-05 17:48 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lou Mazz 2021-04-28 17:47:34 PDT
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"S AN EXAMPLE FROM ANOTHER USER:

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

Click "See the demo"
Click "Print Kittens" = first time OK, second time: nada.  Same symptoms as above
Comment 1 Lou Mazz 2021-04-29 04:07:50 PDT
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
Comment 2 Radar WebKit Bug Importer 2021-05-05 17:48:11 PDT
<rdar://problem/77584924>