Fix autofill on Chrome from the iOS Share Extension (#1254)

* Process UTTypeURL data received from host app

* Disable autofill via Share extension for Chrome
This commit is contained in:
Thomas Rittson 2021-02-12 08:14:37 +10:00 committed by GitHub
parent 5e70d03dbe
commit d88695f5d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -28,6 +28,7 @@
public const string UTTypeAppExtensionFillWebViewAction = "org.appextension.fill-webview-action";
public const string UTTypeAppExtensionFillBrowserAction = "org.appextension.fill-browser-action";
public const string UTTypeAppExtensionSetup = "com.8bit.bitwarden.extension-setup";
public const string UTTypeAppExtensionUrl = "public.url";
public const string AutofillNeedsIdentityReplacementKey = "autofillNeedsIdentityReplacement";
}

View file

@ -49,6 +49,7 @@ namespace Bit.iOS.Extension
|| ProcessFindLoginProvider(itemProvider)
|| ProcessFindLoginBrowserProvider(itemProvider, Constants.UTTypeAppExtensionFillBrowserAction)
|| ProcessFindLoginBrowserProvider(itemProvider, Constants.UTTypeAppExtensionFillWebViewAction)
|| ProcessFindLoginBrowserProvider(itemProvider, Constants.UTTypeAppExtensionUrl)
|| ProcessSaveLoginProvider(itemProvider)
|| ProcessChangePasswordProvider(itemProvider)
|| ProcessExtensionSetupProvider(itemProvider))

View file

@ -49,7 +49,8 @@ namespace Bit.iOS.Extension
{
if (Context.ProviderType != Constants.UTTypeAppExtensionFillBrowserAction
&& Context.ProviderType != Constants.UTTypeAppExtensionFillWebViewAction
&& Context.ProviderType != UTType.PropertyList)
&& Context.ProviderType != UTType.PropertyList
&& Context.ProviderType != Constants.UTTypeAppExtensionUrl)
{
return true;
}