mirror of
https://github.com/bitwarden/clients.git
synced 2026-06-16 21:02:53 +08:00
[PM-21480] - check for privacy granted in isBrowserAutofillSettingOverridden (#14748)
* check for privacy granted in isBrowserAutofillSettingOverridden * check for privacy granted in browserAutofillSettingsOverridden
This commit is contained in:
parent
90d8e822ff
commit
ce8e123c44
@ -664,6 +664,10 @@ export class BrowserApi {
|
||||
* Identifies if the browser autofill settings are overridden by the extension.
|
||||
*/
|
||||
static async browserAutofillSettingsOverridden(): Promise<boolean> {
|
||||
if (!(await BrowserApi.permissionsGranted(["privacy"]))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const checkOverrideStatus = (details: chrome.types.ChromeSettingGetResult<boolean>) =>
|
||||
details.levelOfControl === "controlled_by_this_extension" && !details.value;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user