1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-19 15:57:42 +01:00

do not do browser extension permission check if the Show autofill suggestions setting is being turned off (#11889)

This commit is contained in:
Jonathan Prusik 2024-11-07 10:38:49 -05:00 committed by GitHub
parent faf7e3d315
commit 05a79d58bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,7 +219,11 @@ export class AutofillComponent implements OnInit {
: AutofillOverlayVisibility.Off;
await this.autofillSettingsService.setInlineMenuVisibility(newInlineMenuVisibilityValue);
await this.requestPrivacyPermission();
// No need to initiate browser permission request if a feature is being turned off
if (newInlineMenuVisibilityValue !== AutofillOverlayVisibility.Off) {
await this.requestPrivacyPermission();
}
}
async updateAutofillOnPageLoad() {