1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-15 07:43:37 +00:00

add more autofill compat support

This commit is contained in:
Kyle Spearrin
2018-09-06 00:17:26 -04:00
parent 43dad1df63
commit 10ecdfbe31
3 changed files with 67 additions and 14 deletions

View File

@@ -7,17 +7,6 @@ namespace Bit.Android.Autofill
{
public class Parser
{
public static HashSet<string> TrustedBrowsers = new HashSet<string>
{
"org.mozilla.focus","org.mozilla.firefox","org.mozilla.firefox_beta","com.microsoft.emmx",
"com.android.chrome","com.chrome.beta","com.android.browser","com.brave.browser","com.opera.browser",
"com.opera.browser.beta","com.opera.mini.native","com.chrome.dev","com.chrome.canary",
"com.google.android.apps.chrome","com.google.android.apps.chrome_dev","com.yandex.browser",
"com.sec.android.app.sbrowser","com.sec.android.app.sbrowser.beta","org.codeaurora.swe.browser",
"com.amazon.cloud9","org.mozilla.klar","com.duckduckgo.mobile.android","mark.via.gp","org.bromite.bromite",
"org.chromium.chrome", "com.kiwibrowser.browser", "com.ecosia.android", "com.opera.mini.native.beta",
"org.mozilla.fennec_aurora"
};
public static HashSet<string> ExcludedPackageIds = new HashSet<string>
{
@@ -95,7 +84,8 @@ namespace Bit.Android.Autofill
ParseNode(node.RootViewNode);
}
if(!TrustedBrowsers.Contains(PackageName))
if(!AutofillHelpers.TrustedBrowsers.Contains(PackageName) &&
!AutofillHelpers.CompatBrowsers.Contains(PackageName))
{
WebDomain = null;
}