mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +00: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:
@@ -664,6 +664,10 @@ export class BrowserApi {
|
|||||||
* Identifies if the browser autofill settings are overridden by the extension.
|
* Identifies if the browser autofill settings are overridden by the extension.
|
||||||
*/
|
*/
|
||||||
static async browserAutofillSettingsOverridden(): Promise<boolean> {
|
static async browserAutofillSettingsOverridden(): Promise<boolean> {
|
||||||
|
if (!(await BrowserApi.permissionsGranted(["privacy"]))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
const checkOverrideStatus = (details: chrome.types.ChromeSettingGetResult<boolean>) =>
|
const checkOverrideStatus = (details: chrome.types.ChromeSettingGetResult<boolean>) =>
|
||||||
details.levelOfControl === "controlled_by_this_extension" && !details.value;
|
details.levelOfControl === "controlled_by_this_extension" && !details.value;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user