[webkit-changes] [WebKit/WebKit] cc5c0b: [UIAsyncTextInput] Respect UIKit/async_text_input_...

Wenson Hsieh noreply at github.com
Mon Dec 18 14:30:15 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cc5c0bf1476ad4be35974c83d93b4586fc77fda7
      https://github.com/WebKit/WebKit/commit/cc5c0bf1476ad4be35974c83d93b4586fc77fda7
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  Date:   2023-12-18 (Mon, 18 Dec 2023)

  Changed paths:
    M Source/WebKit/Shared/ios/WebPreferencesDefaultValuesIOS.mm

  Log Message:
  -----------
  [UIAsyncTextInput] Respect UIKit/async_text_input_(iphone|ipad) after rdar://119688719
https://bugs.webkit.org/show_bug.cgi?id=266586
rdar://119818867

Reviewed by Richard Robinson.

UIKit is splitting the `async_text_input` feature flag out into `async_text_input_iphone` and
`async_text_input_ipad` in rdar://119688719. To keep async text input enabled after this change, we
need to tweak our enablement logic to match these new names.

* Source/WebKit/Shared/ios/WebPreferencesDefaultValuesIOS.mm:
(WebKit::isAsyncTextInputFeatureFlagEnabled):

Pull this feature flag check out into a common helper method, and also continue checking against the
old `UIKit/async_text_input` name to make sure we don't inadvertently disable the feature on current
versions of UIKit in the build.

(WebKit::defaultUseAsyncUIKitInteractions):
(WebKit::defaultWriteRichTextDataWhenCopyingOrDragging):

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




More information about the webkit-changes mailing list