mirror of
https://github.com/bitwarden/mobile
synced 2025-12-17 16:53:26 +00: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:
@@ -28,6 +28,7 @@
|
|||||||
public const string UTTypeAppExtensionFillWebViewAction = "org.appextension.fill-webview-action";
|
public const string UTTypeAppExtensionFillWebViewAction = "org.appextension.fill-webview-action";
|
||||||
public const string UTTypeAppExtensionFillBrowserAction = "org.appextension.fill-browser-action";
|
public const string UTTypeAppExtensionFillBrowserAction = "org.appextension.fill-browser-action";
|
||||||
public const string UTTypeAppExtensionSetup = "com.8bit.bitwarden.extension-setup";
|
public const string UTTypeAppExtensionSetup = "com.8bit.bitwarden.extension-setup";
|
||||||
|
public const string UTTypeAppExtensionUrl = "public.url";
|
||||||
|
|
||||||
public const string AutofillNeedsIdentityReplacementKey = "autofillNeedsIdentityReplacement";
|
public const string AutofillNeedsIdentityReplacementKey = "autofillNeedsIdentityReplacement";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ namespace Bit.iOS.Extension
|
|||||||
|| ProcessFindLoginProvider(itemProvider)
|
|| ProcessFindLoginProvider(itemProvider)
|
||||||
|| ProcessFindLoginBrowserProvider(itemProvider, Constants.UTTypeAppExtensionFillBrowserAction)
|
|| ProcessFindLoginBrowserProvider(itemProvider, Constants.UTTypeAppExtensionFillBrowserAction)
|
||||||
|| ProcessFindLoginBrowserProvider(itemProvider, Constants.UTTypeAppExtensionFillWebViewAction)
|
|| ProcessFindLoginBrowserProvider(itemProvider, Constants.UTTypeAppExtensionFillWebViewAction)
|
||||||
|
|| ProcessFindLoginBrowserProvider(itemProvider, Constants.UTTypeAppExtensionUrl)
|
||||||
|| ProcessSaveLoginProvider(itemProvider)
|
|| ProcessSaveLoginProvider(itemProvider)
|
||||||
|| ProcessChangePasswordProvider(itemProvider)
|
|| ProcessChangePasswordProvider(itemProvider)
|
||||||
|| ProcessExtensionSetupProvider(itemProvider))
|
|| ProcessExtensionSetupProvider(itemProvider))
|
||||||
|
|||||||
@@ -49,7 +49,8 @@ namespace Bit.iOS.Extension
|
|||||||
{
|
{
|
||||||
if (Context.ProviderType != Constants.UTTypeAppExtensionFillBrowserAction
|
if (Context.ProviderType != Constants.UTTypeAppExtensionFillBrowserAction
|
||||||
&& Context.ProviderType != Constants.UTTypeAppExtensionFillWebViewAction
|
&& Context.ProviderType != Constants.UTTypeAppExtensionFillWebViewAction
|
||||||
&& Context.ProviderType != UTType.PropertyList)
|
&& Context.ProviderType != UTType.PropertyList
|
||||||
|
&& Context.ProviderType != Constants.UTTypeAppExtensionUrl)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user