Android: Support autofill in Fennec F-Droid (#483)

The F-Droid build of Firefox (Fennec) has a different package name.
This name needs to be explicitly listed in order for autofill support to
work correctly.
This commit is contained in:
Dustin C. Hatch 2019-04-12 19:32:58 +00:00 committed by Kyle Spearrin
parent 54a109345b
commit 6c59bf8717
3 changed files with 8 additions and 3 deletions

View file

@ -32,8 +32,9 @@ namespace Bit.Android.Autofill
"com.google.android.apps.chrome","com.google.android.apps.chrome_dev","com.yandex.browser", "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.sec.android.app.sbrowser","com.sec.android.app.sbrowser.beta","org.codeaurora.swe.browser",
"com.amazon.cloud9","mark.via.gp","org.bromite.bromite","org.chromium.chrome","com.kiwibrowser.browser", "com.amazon.cloud9","mark.via.gp","org.bromite.bromite","org.chromium.chrome","com.kiwibrowser.browser",
"com.ecosia.android","com.opera.mini.native.beta","org.mozilla.fennec_aurora","com.qwant.liberty", "com.ecosia.android","com.opera.mini.native.beta","org.mozilla.fennec_aurora","org.mozilla.fennec_fdroid",
"com.opera.touch","org.mozilla.fenix","org.mozilla.reference.browser","org.mozilla.rocket" "com.qwant.liberty", "com.opera.touch","org.mozilla.fenix","org.mozilla.reference.browser",
"org.mozilla.rocket"
}; };
// The URLs are blacklisted from autofilling // The URLs are blacklisted from autofilling

View file

@ -49,6 +49,7 @@ namespace Bit.Android
new Browser("org.mozilla.firefox", "url_bar_title"), new Browser("org.mozilla.firefox", "url_bar_title"),
new Browser("org.mozilla.firefox_beta", "url_bar_title"), new Browser("org.mozilla.firefox_beta", "url_bar_title"),
new Browser("org.mozilla.fennec_aurora", "url_bar_title"), new Browser("org.mozilla.fennec_aurora", "url_bar_title"),
new Browser("org.mozilla.fennec_fdroid", "url_bar_title"),
new Browser("org.mozilla.focus", "display_url"), new Browser("org.mozilla.focus", "display_url"),
new Browser("org.mozilla.klar", "display_url"), new Browser("org.mozilla.klar", "display_url"),
new Browser("org.mozilla.fenix", "mozac_browser_toolbar_url_view"), new Browser("org.mozilla.fenix", "mozac_browser_toolbar_url_view"),

View file

@ -36,6 +36,9 @@
<compatibility-package <compatibility-package
android:name="org.mozilla.fennec_aurora" android:name="org.mozilla.fennec_aurora"
android:maxLongVersionCode="10000000000"/> android:maxLongVersionCode="10000000000"/>
<compatibility-package
android:name="org.mozilla.fennec_fdroid"
android:maxLongVersionCode="10000000000"/>
<compatibility-package <compatibility-package
android:name="org.mozilla.firefox" android:name="org.mozilla.firefox"
android:maxLongVersionCode="10000000000"/> android:maxLongVersionCode="10000000000"/>