Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 37310f2c576b2d2bde74ea5831e3c754c076d083
      
https://github.com/WebKit/WebKit/commit/37310f2c576b2d2bde74ea5831e3c754c076d083
  Author: Adrian Taylor <[email protected]>
  Date:   2026-06-18 (Thu, 18 Jun 2026)

  Changed paths:
    M Source/WebKit/Platform/IPC/HandleMessage.h
    M Source/WebKit/UIProcess/WebBackForwardList.swift

  Log Message:
  -----------
  Reject INT32_MIN in Swift BackForwardList
https://bugs.webkit.org/show_bug.cgi?id=317198
rdar://179805504

Reviewed by Geoffrey Garen.

Swift counterpart of 314581@main (a6cd3ca) for WebBackForwardList.swift.

That change rejected INT32_MIN in the BackForwardItemAtIndexForWebContent IPC
handler and reworked itemAtDeltaFromCurrentIndex to range-check without negating
the delta in signed arithmetic.

This ports those changes to the Swift implementation.

This is the first time a Swift IPC handler has taken both a connection and a
completion handler argument, so it requires fixing an omission in the IPC
dispatch code for this combination.

* Source/WebKit/Platform/IPC/HandleMessage.h:
(IPC::handleMessageSynchronous):
* Source/WebKit/UIProcess/WebBackForwardList.swift:
(Direction.itemAtDeltaFromCurrentIndex(_:allowSkipping:)):

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



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

Reply via email to