From f1bf2d1e892fe6f93b4d618c6d12f3589da6bf47 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 18 Nov 2026 13:45:33 +0100 Subject: 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 --- .../androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'autofill-parser/src/main/java/com/github') 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 = -- cgit v1.2.3