Add Google, Bing and DuckDuckGo image search from Edit Metadata, using the
book title and author. Allow device-local custom search engine templates.
Show the original engine page with explicit image selection, then require
app-owned confirmation before a native fetch so remote pages cannot silently
forge a cover selection. Stage the confirmed image through the existing
cover-save flow. Support desktop and mobile native browsers, with an external search
and file-import fallback on web.
Verification on origin/main 617db1aa3:
- Five affected frontend suites: 50 tests passed; pnpm lint passed.
- Rust formatting and CEF Clippy passed; 202 Rust library tests and four
native bridge model tests passed.
- Regression for editing a search field beneath an overlapping notification
failed before the fix (expected aria-pressed false, received true) and
passes with the fix. Chooser regression failed with the old query input.
- Forged native browser results now wait for app-owned confirmation before
fetching; confirmation and cancellation tests pass. Verified on Android
that a forged result stops there, then fetch and Save pass after confirmation.
- Native CEF app: Bing cover selection/save/reload, DuckDuckGo native keyboard
editing, custom engines and phone/dark/RTL/e-ink layouts exercised.
- Android 15 emulator, WebView 124: Bing query editing, iframe selection,
confirmation, native download and persisted cover after app restart passed.
DuckDuckGo input editing and selection passed; two proxy downloads timed out.
Custom engine add/persist/launch/remove passed.
- Google presented a network challenge on Android; iOS was not built or run.
- Full unit suite is run by the pre-push hook and CI.
Fixes#6653
Reported by lifesucksdude101 on GitHub
Co-authored-by: Claude Code <noreply@anthropic.com>