Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ce60187356b8b655d8e236a9b8e08ba1efa45cc8
https://github.com/WebKit/WebKit/commit/ce60187356b8b655d8e236a9b8e08ba1efa45cc8
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2026-06-10 (Wed, 10 Jun 2026)
Changed paths:
M Source/WebKit/Platform/spi/mac/AppKitSPI.h
M Source/WebKit/UIProcess/Cocoa/WKDeferringGestureRecognizer.swift
M Source/WebKit/UIProcess/mac/WKAppKitGestureController.mm
Log Message:
-----------
[AppKit Gestures] Storyboards with WKWebView fail to compile (`init(coder:)
has not been implemented`)
https://bugs.webkit.org/show_bug.cgi?id=316716
rdar://179048302
Reviewed by Megan Gardner and Richard Robinson.
Any storyboard with a web view in it will invoke ibtool and fatally
error out when trying to call `-initWithCoder:` on the deferring gesture
recognizer. While we don't necessarily support being serialized here, we
do not need to be so catastrophic with the failure.
Instead, we delegate initialization to the parent class' `init(coder:)`
implementation. Plus, we opt out the WKAppKitGestureController-managed
gesture recognizers from being archived. Since we configure and install
these gestures on every web view initialization, decode-based init path
would generate an unnecessary set of (orphaned) gestures.
* Source/WebKit/UIProcess/Cocoa/WKDeferringGestureRecognizer.swift:
* Source/WebKit/UIProcess/mac/WKAppKitGestureController.mm:
(-[WKAppKitGestureController initWithPage:viewImpl:]):
(-[WKAppKitGestureController ensureGesturesAreNotArchived]):
Canonical link: https://commits.webkit.org/314908@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications