[Webkit-unassigned] [Bug 220849] Full-page (PDF) screenshots in iOS 14 Safari aren't showing -webkit-mask correctly
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 28 13:01:55 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=220849
--- Comment #8 from Henric Trotzig <henric.trotzig at happo.io> ---
(In reply to Tim Horton from comment #6)
> Aha, I know why this happened. It's specific to the simulator; on device we
> always only snapshotted the visible parts. It's possible (likely?) that if
> you remove the view from its window before snapshotting you'll get the old
> behavior. I don't know if that's acceptable for your use case, but if so,
> that is one potential workaround.
>
> You could definitely file a separate bug about this, I feel like we maybe
> should fall back to software painting (include arbitrary content) if you
> specify a snapshotting rect outside the view... I thought we did, actually,
> but I don't see the code.
>
> Anyway, try the workaround and file a bug either way.
Tim, you just saved me from a lot of headache. Removing the webview briefly from its parent while taking the screenshot works perfectly. Here's a test run I just did where the "before" images on the left are from iOS 12, "after" are on iOS 14.4: https://happo.io/a/219/p/254/compare/before-546937/after-546937
I'll run through some more tests tomorrow to make sure this approach is stable and performant, but it's definitely promising!
--
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/20210128/78fccf9f/attachment.htm>
More information about the webkit-unassigned
mailing list