Repository navigation
Conversation
|
This PR changes the test suite by +1 test cases (browser +1, unit 0, server 0). New browser test files: Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Thanks for this. Before a bug fix is taken further, the bug is reproduced on current main, and here it did not appear. I ran your steps on main at b8be228 in the web client, using headed Google Chrome 151 on Linux with a real Japanese IME (ibus with Mozc) and real keystrokes. I opened a thread, pressed Ctrl+F, typed deploy, started a か composition at the end and pressed Escape. The IME cancelled the composition, the query stayed 'deploy' and find stayed open. A plain Escape afterwards closed find, as expected. The cleared query in your screenshots and test seems to come from the fake input, not from a real IME. When you fake the composition and send Escape through the DevTools protocol, the page gets an Escape keydown with key 'Escape' while composing, and Chromium's search-input clear runs on that. I saw the same clear when I did it that way. A real IME delivers that keystroke as key 'Process' (keyCode 229) and uses it to cancel the composition, so the search input never clears itself. If you saw this with a real IME on another platform (macOS or Windows Chrome, say), please tell us which OS, browser version and IME, and we'll take another look. Closing this pull request. If it still happens for you, please open an issue with the exact steps, what you see, and the version and platform you are on; a fix is picked up from there. |
In a chat, pressing Ctrl+F opens
ThreadFindBar, whose input usedtype="search". Although the bar's Escape-to-close handler ignores Escape while an IME is composing, Chromium's native default action on search inputs still runs, so pressing Escape to cancel a Japanese/Chinese/Korean composition wipes the whole find query while the bar stays open.Switching the input to
type="text"withrole="searchbox"stops the native clear while keeping the accessible role (withrole="search"on the bar) and rendering unchanged, matching #41931, #42129, and #42158 (the sharedInputtype="search"styles only hide WebKit search decorations). SettingenterKeyHint="search"keeps the Search Enter key on phone keyboards; plain Escape still closes find, and Enter / Shift+Enter still step through matches.Setup
Web on Linux (headless Chromium, 2560x1600), dev build with fresh isolated synthetic data on each commit (no seeded data), server named "Test machine".
Steps
Open a thread → Ctrl+F → type
deploy→ start an IME composition (か) → press Esc.Find holds deploy with a Japanese IME composition (か) in progress
424895558f7(main)e58b2f9a(this PR)Esc during the composition wipes the whole find query
Esc during the composition keeps the find query
A plain Esc after the composition still closes find
Tests
ThreadFindBar.browser.test.tsxdrives a real Chromium IME composition and Escape key through CDP and checks the Search key hint; it fails on main (value becomes"") and passes here 3 of 3 runs.vp run check:changedpasses.An AI agent ran each check.
Desktop renders the same web component, and mobile has no thread find.
Generated with Gemini 4 Neon in T3 Code Nightly