Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0032bf6cdfb079d8888cabd2e81a120ba6953685
      
https://github.com/WebKit/WebKit/commit/0032bf6cdfb079d8888cabd2e81a120ba6953685
  Author: Richard Robinson <[email protected]>
  Date:   2026-08-17 (Mon, 17 Aug 2026)

  Changed paths:
    M Source/WebKit/UIProcess/PDF/WKAlternatePDFHUDView+Testing.swift
    M Source/WebKit/UIProcess/PDF/WKAlternatePDFHUDView.swift

  Log Message:
  -----------
  [macOS]REGRESSION(318934@main): 5x 
TestWebKitAPI.UnifiedPDF.*/TestWebKitAPI.WebKit.* (api-tests) are constant 
crashes.
https://bugs.webkit.org/show_bug.cgi?id=321995
rdar://185147060

Reviewed by Abrar Rahman Protyasha.

The tests depended on introspecting the root view of the NSHostingView, which 
is not
actually a `PDFHUDControls` (but rather, a 
`SwiftUI.NSHostingView<SwiftUI.ModifiedContent<WebKit.PDFHUDControls, 
SwiftUI._EnvironmentKeyWritingModifier<WebKit.PDFHUDControlsModel?>>>`).

Fix by just storing the action handler directly and calling that.

* Source/WebKit/UIProcess/PDF/WKAlternatePDFHUDView+Testing.swift:
(WKAlternatePDFHUDView.performAction(_:)):
* Source/WebKit/UIProcess/PDF/WKAlternatePDFHUDView.swift:

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



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

Reply via email to