summaryrefslogtreecommitdiffstats
path: root/autofill-parser/src/main/java/com/github
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-18 13:45:33 +0100
committerDanilo M. <danix@danix.xyz>2026-11-18 13:45:33 +0100
commitf1bf2d1e892fe6f93b4d618c6d12f3589da6bf47 (patch)
treeceaff9ec4b557ba2b44e940dd62d3259a50e8842 /autofill-parser/src/main/java/com/github
parent477c5d2aa08814b9c1b0611b62c16b7899f075b2 (diff)
downloadHardenedPass-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>
Diffstat (limited to 'autofill-parser/src/main/java/com/github')
-rw-r--r--autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt2
1 files changed, 2 insertions, 0 deletions
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 =