
This is to fix the issue that Apple intelligence's writing tools grabs the focus from browser after the user click replace button in writing tools bubble which causes the replaced text can not be inserted into browser IME since the content's NSView loses focus. Please note that this is a workaround fix and should be removed after the issue is finally fixed by Apple which is tracked via FB16872510. Bug: 385170286 Change-Id: Ied94e2c3eba320cfeeb1eea68f6a5527e6ccd6ba Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6320619 Reviewed-by: Avi Drissman <avi@chromium.org> Reviewed-by: Leon Han <shulianghan@microsoft.com> Commit-Queue: Fei Chen <feich@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1434585}