Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f0ec0e0ae7f183a044ce9aba1bfb294c583bd5bb
      
https://github.com/WebKit/WebKit/commit/f0ec0e0ae7f183a044ce9aba1bfb294c583bd5bb
  Author: Aditya Keerthi <[email protected]>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/EditorStateTests.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/UnifiedPDFTests.mm
    M Tools/TestWebKitAPI/cocoa/TestWKWebView.h
    M Tools/TestWebKitAPI/cocoa/TestWKWebView.mm

  Log Message:
  -----------
  [iOS] TestWebKitAPI.EditorStateTests.SelectedTextRange_CaretSelectionWithZoom 
is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=294922
rdar://154216068

Reviewed by Abrar Rahman Protyasha.

Wait for a visible content rect update before setting the zoom scale, so that
it does get overridden on next layer tree commit.

Additionally, treat the zoom scale change as a user triggered zoom by swizzling
the state on the gesture recognizer. Without this, the zoom scale may get when
the viewport configuration changes.

* Tools/TestWebKitAPI/Tests/WebKitCocoa/EditorStateTests.mm:
(TestWebKitAPI::TEST(EditorStateTests, 
SelectedTextRange_CaretSelectionWithZoom)):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/UnifiedPDFTests.mm:
(TestWebKitAPI::UNIFIED_PDF_TEST):

Adopt the new helper in another test.

* Tools/TestWebKitAPI/cocoa/TestWKWebView.h:
* Tools/TestWebKitAPI/cocoa/TestWKWebView.mm:
(-[TestWKWebView setZoomScaleSimulatingUserTriggeredZoom:]):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to