tor-browser

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

commit 7440938202579e294b5f6ad201a514c86f068d7e
parent 10a499686de5d22bb0ee210370f7d33bef146e27
Author: Mark Striemer <mstriemer@mozilla.com>
Date:   Thu,  8 Jan 2026 05:27:59 +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"); }