[webkit-changes] [WebKit/WebKit] dfce27: Fix internal iOS builds following 290280 at main

Aditya Keerthi noreply at github.com
Mon Feb 17 12:12:07 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dfce27af3c4a97d6ca3dc23636f43501a0a68bc2
      https://github.com/WebKit/WebKit/commit/dfce27af3c4a97d6ca3dc23636f43501a0a68bc2
  Author: Aditya Keerthi <akeerthi at apple.com>
  Date:   2025-02-17 (Mon, 17 Feb 2025)

  Changed paths:
    M Source/WebKit/Platform/cocoa/WKMaterialHostingSupport.h
    M Source/WebKit/Platform/cocoa/WKMaterialHostingSupport.swift
    M Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeHost.mm
    M Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeHostIOS.mm

  Log Message:
  -----------
  Fix internal iOS builds following 290280 at main
https://bugs.webkit.org/show_bug.cgi?id=287807
rdar://144991668

Reviewed by Abrar Rahman Protyasha.

SwiftUI.framework is unavailable in some images where WebKit.framework is
available. Weak link SwiftUI to avoid build failures in those places.

* Source/WebKit/Platform/cocoa/WKMaterialHostingSupport.h:

Introduce an availability check to avoid crashing in places where SwiftUI
is unavailable.

* Source/WebKit/Platform/cocoa/WKMaterialHostingSupport.swift:
(WKMaterialHostingSupport.isMaterialHostingAvailable):
* Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeHost.mm:
(WebKit::RemoteLayerTreeHost::makeNode):
* Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeHostIOS.mm:
(WebKit::RemoteLayerTreeHost::makeNode):

Canonical link: https://commits.webkit.org/290493@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