tor-browser

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

commit 732d3a16fec5707f37ac8df7a35e2a928351ca9a
parent df82004c2563d03ebfbc16d4893c6154cdab2be4
Author: Neil Deakin <neil@mozilla.com>
Date:   Tue, 16 Dec 2025 14:47:40 +0000

Bug 1999525, don't change the value for a select dropdown when the value doesn't match any of the options, r=dimi,credential-management-reviewers

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

Diffstat:
Mtoolkit/components/formautofill/shared/FormAutofillHandler.sys.mjs | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/toolkit/components/formautofill/shared/FormAutofillHandler.sys.mjs b/toolkit/components/formautofill/shared/FormAutofillHandler.sys.mjs @@ -436,7 +436,10 @@ export class FormAutofillHandler { // Unlike text input, select element is always previewed even if // the option is already selected. const option = this.matchSelectOptions(fieldDetail, profile); - value = option?.text ?? ""; + if (!option) { + continue; + } + value = option.text ?? ""; } else { continue; }