[Webkit-unassigned] [Bug 231268] New: On Monterey, images in WebView don't always appear when rendered into a PDF context

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 5 16:49:25 PDT 2021


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

            Bug ID: 231268
           Summary: On Monterey, images in WebView don't always appear
                    when rendered into a PDF context
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bya at 180g.co
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Created attachment 440294

  --> https://bugs.webkit.org/attachment.cgi?id=440294&action=review

Xcode project to reproduce the bug on Monterey

We have an application that uses an unmapped WebView to render the content of a webpage into a PDF. With Monterey, we've noticed that sometimes images just don't appear in the generated PDF.

On Monterey, if we switch to rendering from an onscreen WebView, it becomes more likely that images will appear in the final PDF…but it still isn’t guaranteed.

I’ve attached an Xcode project that illustrates this. By default, this project will create an unmapped WebView, load some static HTML, and render it to “~/Desktop/missingImages.pdf”. On Big Sur and Catalina, you will see an image of a cute puppy on the first page of the PDF. On Monterey, you will see a big red square instead of the image (red is the background-color for that <img> element).

In the project, you can change an “#if 0” to “#if 1” so that it uses an onscreen web view. On Monterey, you will likely see the puppy. As we mentioned above, though, this still doesn’t ALWAYS happen. 

I've filed this regression using Feedback Assistant (FB9681094), but am reporting this here, too, in case it's more of a WebKit issue than a Monterey one.

-- 
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/20211005/d9824a4b/attachment.htm>


More information about the webkit-unassigned mailing list