Skip to content

Add opt-in system autofill for regular tabs - #17

Merged
Nerzouille merged 2 commits into
Nerzouille:devfrom
zy6p:feat/system-autofill
Dec 2, 2026
Merged

Nerzouille merged 2 commits into
Nerzouille:devfrom
zy6p:feat/system-autofill

Conversation

@zy6p

@zy6p zy6p commented Nov 26, 2026

Copy link
Copy Markdown

This follows the system autofill split discussed in #2, on top of the passkey changes in #16.

  • Add Settings › Passwords › System autofill, off by default. Regular web forms can participate when the user turns it on.
  • Check the Gecko session attached to the page view. Private and unattached sessions keep the Gecko Autofill delegate off, and the view withholds the form structure even on an explicit Android request.
  • When an Android service is enabled and the setting is on, it owns the password save prompt in regular tabs. Koan still offers its existing saved logins.

447 app unit tests passed with the fixtures pinned in CI. Three new Robolectric tests exercise the opt-in, regular and private session switches, and view release and reattachment. The debug APK builds, and Detekt passed with the repo settings. End-to-end filling and unlock with a real provider still need device testing.

@Nerzouille
Nerzouille merged commit 245e44c into Nerzouille:dev Dec 2, 2026
3 checks passed
@Nerzouille

Copy link
Copy Markdown
Owner

Thanks a lot for your work! 🙏

I made the last changes myself on top of your commits (you stay the author of them):

  • Autofill is on by default in normal tabs, with no setting (like Edge).
  • Koan keeps the save prompt. A sent form now cancels Android's autofill session instead of committing it, so only Koan's card asks. This goes through a small wrapper around GeckoView's autofill delegate. Kotlin's by doesn't forward Java default methods, so every method is written out.
  • The docs match.

On my phone Google's service gets the requests but offers nothing to Koan (probably the same trusted-browser list as passkeys). If you can try it with Bitwarden or another service, I'd love to hear how it goes. Merged for beta 2, thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants