[Webkit-unassigned] [Bug 238393] New: PDF save button saves currently loaded data - incomplete PDF saved

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 25 14:53:20 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=238393

            Bug ID: 238393
           Summary: PDF save button saves currently loaded data -
                    incomplete PDF saved
           Product: WebKit
           Version: Safari 15
          Hardware: Mac (Apple Silicon)
                OS: macOS 12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: PDF
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mabianfu at icloud.com
                CC: thorton at apple.com

When a PDF is only partially loaded in the built-in PDF viewer, and you click the Save button, an incomplete copy of the PDF is saved immediately to disk. 

The saved PDF has the same file size as the complete one would have, so if the first page has loaded, you get what *looks* like a complete PDF complete with thumbnail image - but it is actually not the complete file.

I'm unsure if this is a regression (I don't recall the behaviour in the past) or if it is just something that needs improvement.

I believe the issue is indeed webkit (and not Safari-specific), because I use another webkit-based browser (Orion) which has the same issue.

If it was up to me, I'd design the UI like this - just an idea:

The Save button can be clicked at any time. If PDF is not fully loaded when the button is clicked, the button changes to display a loading indicator, and when finished loading the PDF is saved to disk. This indicates to the user that saving will happen, and when it will happen. While the loading indicator is visible, hovering the cursor over it displays an "X" or similar to indicate clicking it will cancel the pending future Save action, and clicking it does just that.

For testing purposes, here is large PDF: https://docs.qgis.org/3.22/pdf/en/QGIS-3.22-DesktopUserGuide-en.pdf
(47MB user guide for open-source geospatial software QGIS)

To compare to other browsers:
Firefox's behaviour is not great. The Save button can always be clicked, but it does nothing at all if the PDF is not fully loaded. It doesn't defer a save action until it is loaded - it's just an apparently clickable button that does nothing in that situation. 

I'm not sure what Chromium does.

Thanks for your time and I apologise if my first report here is not up to snuff.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220325/32a2859b/attachment.htm>


More information about the webkit-unassigned mailing list