[PM-21480] - check for privacy granted in isBrowserAutofillSettingOverridden (#14748)

* check for privacy granted in isBrowserAutofillSettingOverridden

* check for privacy granted in browserAutofillSettingsOverridden
pull/14495/head^2
Jordan Aasen 1 year ago committed by GitHub
parent 90d8e822ff
commit ce8e123c44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save