Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 44561f4f29c9a94096c4a00b4e09da1066d668d3
      
https://github.com/WebKit/WebKit/commit/44561f4f29c9a94096c4a00b4e09da1066d668d3
  Author: Cole Carley <[email protected]>
  Date:   2026-04-06 (Mon, 06 Apr 2026)

  Changed paths:
    M 
LayoutTests/editing/input/ios/rtl-keyboard-input-on-focus-in-editable-page.html
    M Source/WebCore/page/FocusController.cpp
    M Source/WebCore/page/Quirks.cpp

  Log Message:
  -----------
  outlook.com: Text selection get undone when trying to change `font`
https://bugs.webkit.org/show_bug.cgi?id=310549
rdar://171221909

Reviewed by Ryosuke Niwa.

Office uses Microsoft's rich text editor, roosterjs, which sniffs for
Safari and has it's own selection logic. I fixed this issue by adding a
quirk that sends over the chrome user agent string.

The bug persists with jus the chrome UA string, which I believe is why
roosterjs has it's own selection logic for Safari. So, I made a change in
the FocusController to preserve selection when focus leaves a contentEditable
root to a non-editable target.

* 
LayoutTests/editing/input/ios/rtl-keyboard-input-on-focus-in-editable-page.html:
* Source/WebCore/page/FocusController.cpp:
(WebCore::clearSelectionIfNeeded):
* Source/WebCore/page/Quirks.cpp:
* failures.txt: Added.

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



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

Reply via email to