Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fd3b2868954a7aff5564e6e01ebabf4253728c75
      
https://github.com/WebKit/WebKit/commit/fd3b2868954a7aff5564e6e01ebabf4253728c75
  Author: Richard Robinson <[email protected]>
  Date:   2026-07-09 (Thu, 09 Jul 2026)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKUserContentController.swift

  Log Message:
  -----------
  Follow-up to 316796@main and subsequent build fixes to document safety 
invariants and FIXMEs
https://bugs.webkit.org/show_bug.cgi?id=319024
rdar://181879513

Reviewed by Abrar Rahman Protyasha.

Swift 6.4 has the safe `Span(viewing:)` initializer API 
(https://developer.apple.com/documentation/swift/span/init(viewing:)-9d31g) 
implemented in 
https://github.com/swiftlang/swift/commit/8e5539f6199458258d508210ed2f2256911c6ca3
 .

However, some configurations of WebKit use an old Swift 6.4 version which does 
not yet have such
API. Therefore, a build fix was landed to use the pre-API version of the 
initializer, which has
an identical implementation but is marked as unsafe since its constraints on 
the `Span.Element`
type aren't as strict.

Document this safety reasoning and add a FIXME.

* Source/WebKit/UIProcess/API/Cocoa/WKUserContentController.swift:
(WKUserContentController.addBuffer(_:name:to:)):

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



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

Reply via email to