mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
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:
parent
5e70d03dbe
commit
d88695f5d5
3 changed files with 4 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue