mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-02 18:17:46 +01:00
[PM-5839] [PM-5847] Set Bitwarden as Browser Default Autofill Bug Fixes (#8007)
This commit is contained in:
parent
ba4e59783b
commit
91cc837be9
@ -2974,10 +2974,6 @@
|
|||||||
"message": "Ignoring this option may cause conflicts between the Bitwarden auto-fill menu and your browser's.",
|
"message": "Ignoring this option may cause conflicts between the Bitwarden auto-fill menu and your browser's.",
|
||||||
"description": "Dialog message facilitating the ability to override a chrome browser's default autofill behavior"
|
"description": "Dialog message facilitating the ability to override a chrome browser's default autofill behavior"
|
||||||
},
|
},
|
||||||
"overrideDefaultBrowserAutofillPrivacyRequiredDescription": {
|
|
||||||
"message": "This action will restart the Bitwarden extension. Ignoring this option may cause conflicts between the Bitwarden auto-fill menu and your browser's.",
|
|
||||||
"description": "Dialog message facilitating the ability to override a chrome browser's default autofill behavior"
|
|
||||||
},
|
|
||||||
"overrideDefaultBrowserAutoFillSettings": {
|
"overrideDefaultBrowserAutoFillSettings": {
|
||||||
"message": "Make Bitwarden your default password manager",
|
"message": "Make Bitwarden your default password manager",
|
||||||
"description": "Label for the setting that allows overriding the default browser autofill settings"
|
"description": "Label for the setting that allows overriding the default browser autofill settings"
|
||||||
|
@ -210,13 +210,9 @@ export class AutofillComponent implements OnInit {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const permissionGranted = await this.privacyPermissionGranted();
|
|
||||||
const contentKey = permissionGranted
|
|
||||||
? "overrideDefaultBrowserAutofillDescription"
|
|
||||||
: "overrideDefaultBrowserAutofillPrivacyRequiredDescription";
|
|
||||||
await this.dialogService.openSimpleDialog({
|
await this.dialogService.openSimpleDialog({
|
||||||
title: { key: "overrideDefaultBrowserAutofillTitle" },
|
title: { key: "overrideDefaultBrowserAutofillTitle" },
|
||||||
content: { key: contentKey },
|
content: { key: "overrideDefaultBrowserAutofillDescription" },
|
||||||
acceptButtonText: { key: "makeDefault" },
|
acceptButtonText: { key: "makeDefault" },
|
||||||
acceptAction: async () => await this.handleOverrideDialogAccept(),
|
acceptAction: async () => await this.handleOverrideDialogAccept(),
|
||||||
cancelButtonText: { key: "ignore" },
|
cancelButtonText: { key: "ignore" },
|
||||||
|
@ -87,7 +87,9 @@ export class NativeMessagingBackground {
|
|||||||
if (chrome?.permissions?.onAdded) {
|
if (chrome?.permissions?.onAdded) {
|
||||||
// Reload extension to activate nativeMessaging
|
// Reload extension to activate nativeMessaging
|
||||||
chrome.permissions.onAdded.addListener((permissions) => {
|
chrome.permissions.onAdded.addListener((permissions) => {
|
||||||
BrowserApi.reloadExtension(null);
|
if (permissions.permissions?.includes("nativeMessaging")) {
|
||||||
|
BrowserApi.reloadExtension(null);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user