soul-browser/sources
KaKi87 c322a12317
Fix Find in page taking a stale URL-bar query (#113)
* Fix Find in page taking a stale URL-bar query.

Suggestion Filter results can lag behind typing, so SearchItem.f was often only the first character(s). Read the live URL-bar text before closing search mode.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix Find in page losing the URL-bar query to IME focus handoff.

Prefill the find field before focus and disable select-all during the handoff, refresh Find suggestion rows from the latest filter constraint, and keep clickable adapter data in sync so a stale first-character snapshot is not used.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Remove obsolete MyFindView focus nested classes.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix Find in page by tracking URL-bar keystrokes and skipping IME handoff.

Keep a findQueryCandidate on each URL-bar edit so Find is not stuck on a stale Filter prefix, and when prefilling Find do not focus or reopen the keyboard (that handoff was still replacing the query with one character).

Co-authored-by: Cursor <cursoragent@cursor.com>

* Drop intermediate Find-in-page workarounds now that the real fix landed.

Keep URL-bar findQueryCandidate plus no IME on prefill; remove Filter refresh, live EditText merge, and MyFindView recompile noise.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Restore the working Find-in-page fix after an over-aggressive cleanup.

The slimmed candidate-only path regressed; bring back Filter sync, live URL-bar merge, and MyFindView prefill hardening from the last known-good commit.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Shrink Find-in-page diff: drop MyFindView recompile noise only.

Keep the known-good Find behavior; restore unrelated nested smali to main and hand-patch only the early prefill into MyFindView.smali.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Bisect Find-in-page: drop suggestion Filter refresh.

findQueryCandidate and MyFindView prefill hardening remain; stale SearchItem.f sync in the adapters is the next layer under test.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Bisect Find-in-page: drop live URL-bar Q0 merge in i1.

Prefer findQueryCandidate when set, otherwise SearchItem.f. MyFindView prefill hardening stays for the next test.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Restore live URL-bar Q0 merge in Find i1 after bisect failure.

findQueryCandidate alone was not enough; keep reading the EditText before closing search mode.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Bisect Find-in-page: drop findQueryCandidate, keep live Q0.

Test whether reading the URL bar in i1 is enough without the keystroke-tracked field.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Restore findQueryCandidate after live-Q0-only bisect failed.

Both the keystroke-tracked field and the live URL-bar read are required in i1.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Bisect Find-in-page: drop MyFindView early prefill in b().

AnonymousClass9 still prefills without focus/IME and re-applies after 300ms.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Bisect Find-in-page: drop MyFindView 300ms re-apply.

Prefill still skips focus/IME; empty Find still focuses and shows the keyboard.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Bisect Find-in-page: drop setSelectAllOnFocus(false) on prefill.

No-focus setText path remains; select-all stays at the default true for later focus.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Bisect Find-in-page: simplify i1 merge to prefer longest text.

Keep findQueryCandidate and live Q0; drop the startsWith edge-case checks.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Restore i1 startsWith merge after longest-only bisect failed.

Prefer-longest alone can keep a longer stale suggestion over the real query.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Bisect Find-in-page: drop clearComposingText before live Q0.

Test whether reading the URL bar as-is is enough for the i1 merge.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 23:35:25 +02:00
..
java Fix Find in page taking a stale URL-bar query (#113) 2026-09-11 23:35:25 +02:00
ocr-runtime/com/mycompany/app/ocr Fix PDF translation stuck on "Updating the text module" (#22) 2026-08-12 16:53:38 +02:00
resources Add Advanced toggle to preload Eruda DevTools (#112) 2026-09-10 23:19:53 +02:00
warp-runtime/com/mycompany/app/warp Add Cloudflare WARP (#58) 2026-08-17 02:07:27 +02:00
warp-runtime-stubs Add Cloudflare WARP (#58) 2026-08-17 02:07:27 +02:00