[iOS 18.4 Beta 2-4] WKWebView content inset causes content touches to be off inside the web view

Background

On iOS 18.4 beta, setting a content inset on a WKWebView causes touch events inside the web view to be offset by the content inset amount. In other words, if the web view has a top content inset of 75 points, I must tap 75 points above the intended element for the touch to register correctly. This makes any web content unusable when a content inset is present.

A sample app demonstrating the issue is available here: GitHub - iOS18.4-Webview-Bug.

The issue does not occur in iOS 18.3 or 18.2.

Bug Report

The bug has been reported and fixed at WebKit Bug 289715 and also filed as rdar://147075945.

Question

Will the fix be included in the upcoming iOS 18.4 beta release (Beta 5) or soon thereafter?

We are also experiencing this issue.

Accepted Answer

Fixed in RC! Thank you so much for including this fix

[iOS 18.4 Beta 2-4] WKWebView content inset causes content touches to be off inside the web view
 
 
Q