diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-18 13:45:33 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-18 13:45:33 +0100 |
| commit | f1bf2d1e892fe6f93b4d618c6d12f3589da6bf47 (patch) | |
| tree | ceaff9ec4b557ba2b44e940dd62d3259a50e8842 | |
| parent | 477c5d2aa08814b9c1b0611b62c16b7899f075b2 (diff) | |
| download | HardenedPass-f1bf2d1e892fe6f93b4d618c6d12f3589da6bf47.tar.gz HardenedPass-f1bf2d1e892fe6f93b4d618c6d12f3589da6bf47.zip | |
autofill-parser: fix Vanadium fill with per-field origins
Vanadium (Chromium 157, "Autofill using another service") annotates
every form field with its frame's web origin. Vanadium had no multi
origin method, so it ran in single origin mode, which requires fillable
fields to carry no origin: every scenario failed the origin check and
no fill was offered.
Use BrowserMultiOriginMethod.Field. Checked on a Pixel 6 Pro with a top
page on 127.0.0.1 and a login iframe on localhost: each form reports
its own frame's origin, and Chromium sends only the focused form. Save
flag 0 is enough: the system save prompt appears on submit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | CHANGELOG.md | 4 | ||||
| -rw-r--r-- | autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c9c6fee..4a8c99b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file. - About: "Report a security issue" links to the security policy, with the maintainer's OpenPGP key for private reports +### Fixed + +- Autofill in Vanadium: fill was never offered, because Vanadium's native autofill labels every field with its page origin, which the single-origin check rejected. Vanadium now uses per-field origins (an iframe's form gets the iframe's origin) and offers to save new logins + ## [0.3.4] - 2026-11-09 ### Added diff --git a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt index 2db02f51..b75d579c 100644 --- a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt +++ b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt @@ -130,6 +130,7 @@ private val BROWSER_MULTI_ORIGIN_METHOD = "org.mozilla.klar" to BrowserMultiOriginMethod.Field, "org.torproject.torbrowser" to BrowserMultiOriginMethod.WebView, "us.spotco.fennec_dos" to BrowserMultiOriginMethod.Field, + "app.vanadium.browser" to BrowserMultiOriginMethod.Field, ) private fun getBrowserMultiOriginMethod(appPackage: String): BrowserMultiOriginMethod = @@ -155,6 +156,7 @@ private val BROWSER_SAVE_FLAG = "com.opera.mini.native" to 0, "com.opera.mini.native.beta" to 0, "com.opera.touch" to 0, + "app.vanadium.browser" to 0, ) private val BROWSER_SAVE_FLAG_IF_NO_ACCESSIBILITY = |
