tor-browser

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

commit 60c6b34e7265ea6601d8a16ffbf18ff1888df2c6
parent 1a587782c5aebb5dce9fecab819f9e98e7826668
Author: Serban Stanca <sstanca@mozilla.com>
Date:   Thu, 23 Oct 2025 19:38:30 +0300

Revert "Bug 1935980 - if a field is not identified but has type='tel', assume it is a tel field r=NeilDeakin,credential-management-reviewers" for causing mochitests failures in browser_OfficeDepot.js.

This reverts commit 6675fb88080efd5ef006bea154f5060c921246bc.

Diffstat:
Mbrowser/extensions/formautofill/test/browser/heuristics/browser_parse_tel_fields.js | 26--------------------------
Mbrowser/extensions/formautofill/test/browser/heuristics/third_party/browser_HomeDepot.js | 4----
Mtoolkit/components/formautofill/shared/FormAutofillHeuristics.sys.mjs | 6------
3 files changed, 0 insertions(+), 36 deletions(-)

diff --git a/browser/extensions/formautofill/test/browser/heuristics/browser_parse_tel_fields.js b/browser/extensions/formautofill/test/browser/heuristics/browser_parse_tel_fields.js @@ -34,30 +34,4 @@ add_heuristic_tests([ }, ], }, - { - description: - "Address form where type='tel' must be checked to identify telephone field", - fixtureData: ` - <form> - <input type="text" id="name" autocomplete="name"/> - <input type="text" id="country" autocomplete="country"/> - <input type="text" id="street-address" autocomplete="street-address"/> - <input type="text" id="address-line1" autocomplete="address-line1"/> - <input type="tel"/> - </form>`, - expectedResult: [ - { - default: { - reason: "autocomplete", - }, - fields: [ - { fieldName: "name" }, - { fieldName: "country" }, - { fieldName: "street-address" }, - { fieldName: "address-line1" }, - { fieldName: "tel", reason: "regex-heuristic" }, - ], - }, - ], - }, ]); diff --git a/browser/extensions/formautofill/test/browser/heuristics/third_party/browser_HomeDepot.js b/browser/extensions/formautofill/test/browser/heuristics/third_party/browser_HomeDepot.js @@ -28,10 +28,6 @@ add_heuristic_tests( reason: "autocomplete", addressType: "billing", }, - { - fieldName: "tel", - reason: "regex-heuristic", - }, ], }, { diff --git a/toolkit/components/formautofill/shared/FormAutofillHeuristics.sys.mjs b/toolkit/components/formautofill/shared/FormAutofillHeuristics.sys.mjs @@ -1111,12 +1111,6 @@ export const FormAutofillHeuristics = { fathomFoundType ); - // If regular expression based heuristics doesn't find any matched field name, - // and the input type is "tel", just use "tel" as the field name. - if (!matchedFieldNames.length && element.type == "tel") { - return ["tel", inferredInfo]; - } - return [matchedFieldNames, inferredInfo]; },