[webkit-changes] [WebKit/WebKit] 9b7724: REGRESSION(290563 at main): [UnifiedPDF] [iOS] Web co...

Abrar Rahman Protyasha noreply at github.com
Thu Feb 27 08:58:03 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9b7724366badac916ce7a47ed0b0952d166977b7
      https://github.com/WebKit/WebKit/commit/9b7724366badac916ce7a47ed0b0952d166977b7
  Author: Abrar Rahman Protyasha <a_protyasha at apple.com>
  Date:   2025-02-27 (Thu, 27 Feb 2025)

  Changed paths:
    M Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm

  Log Message:
  -----------
  REGRESSION(290563 at main): [UnifiedPDF] [iOS] Web content process jetsams while zooming when find-in-page results are presented
https://bugs.webkit.org/show_bug.cgi?id=288702
rdar://145686833

Reviewed by Aditya Keerthi.

In 290563 at main, we introduced a behavior change where, for main frame
plugins on iOS, we would only apply the new page scale factor from a
visible content rects update if we were in steady state, i.e. at the end
of pinch gestures.

This change meant that when we would pinch out, since the new page scale
factor was not applied, there was an unnecessarily large number of tiles
for the find overlay layer - all of which were full resolution too. This
caused unnecessary memory spikes in the web content process and lead to
crossing the memory watermark on said process when pinch zooming around
while the find overlay was up.

This patch addresses the bug by partially reverting the behavior change
introduced in 290563 at main. We do not require being in steady state to
apply page scale factor anymore. This also means that we align better
with pinch zooming behavior on general web content in iOS, in that the
content remains sharp throughout the gesture.

* Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::updateVisibleContentRects):

Canonical link: https://commits.webkit.org/291230@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list