tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 7b3947163c97fe687782a772ec1e30f76e59de14
parent 7d1b5f8680b8b27a14601acc8db03236af7da97a
Author: Mark Striemer <mstriemer@mozilla.com>
Date:   Fri,  9 Jan 2026 06:31:26 +0000

Bug 1994888 - Part 1: Use SettingGroupManager/initSettingGroup in FormAutofillPreferences r=mtigley,credential-management-reviewers,dimi

Differential Revision: https://phabricator.services.mozilla.com/D275333

Diffstat:
Mtoolkit/components/formautofill/FormAutofillPreferences.sys.mjs | 16+++-------------
1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/toolkit/components/formautofill/FormAutofillPreferences.sys.mjs b/toolkit/components/formautofill/FormAutofillPreferences.sys.mjs @@ -182,19 +182,9 @@ export class FormAutofillPreferences { }, }); - let paymentsGroup = document.querySelector( - "setting-group[groupid=payments]" - ); - paymentsGroup.config = FORM_AUTOFILL_CONFIG.payments; - paymentsGroup.getSetting = win.Preferences.getSetting.bind(win.Preferences); - - let addressesGroup = document.querySelector( - "setting-group[groupid=addresses]" - ); - addressesGroup.config = FORM_AUTOFILL_CONFIG.addresses; - addressesGroup.getSetting = win.Preferences.getSetting.bind( - win.Preferences - ); + win.SettingGroupManager.registerGroups(FORM_AUTOFILL_CONFIG); + win.initSettingGroup("payments"); + win.initSettingGroup("addresses"); Services.obs.notifyObservers(win, "formautofill-preferences-initialized"); }