Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2d423cf755c8f12b46336032a94cbe1a25476832
      
https://github.com/WebKit/WebKit/commit/2d423cf755c8f12b46336032a94cbe1a25476832
  Author: Ryosuke Niwa <[email protected]>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

  Log Message:
  -----------
  office.com: PowerPoint sometimes fails to reveal the focused content when 
keyboard comes up
https://bugs.webkit.org/show_bug.cgi?id=300400
<rdar://50384887>

Reviewed by Wenson Hsieh.

The bug was caused by RevealFocusedElementDeferralReason::KeyboardWillShow 
never getting cleared in RevealFocusedElementDeferrer.
This happens because calling [self becomeFirstResponder] can trigger 
_keyboardWillShow synchronously before
RevealFocusedElementDeferrer is created in _continueElementDidFocus. Fixed the 
bug by moving the code to create the deferrer before
calling [self becomeFirstResponder].

Unfortunately no new tests since we couldn't make a layout test or an API test 
to reproduce this issue.

* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView 
_continueElementDidFocus:requiresStrongPasswordAssistance:focusedElementInfo:activityStateChanges:restoreValues:]):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to