gecko-dev/modules/libpref
Bianca Danforth be31af02f5 Bug 1595244 - Use field labels and attributes to determine new-password field types r=MattN
* Add a new module, NewPasswordModel.jsm, which imports the Fathom library from Bug 1618956, and copies over the Fathom model at [bff6995c32e86...](bff6995c32/new-password/rulesets.js (L6-L272)) into it.
  * This module is intended to make it as easy as possible to import model updates from the upstream GitHub repo, though there are a couple extra steps beyond a simple copy and paste.
* The module is imported into LoginAutoComplete.jsm, which has a new helper, _isProbablyANewPasswordField, which runs the model against the provided input element and returns true if the element's confidence score is greater than or equal to a threshold.
  * The confidence threshold, specified by the new signon.generation.confidenceThreshold string preference, is currently set to 0.5 based on [this comment](https://bugzilla.mozilla.org/show_bug.cgi?id=1595244#c12).
  * This should result in a dramatic reduction in false negative rates compared to the existing implementation of this feature (at the expense of an increase in the false positive rate of the existing feature from ~0% to hopefully around 2%).
  * Use of the model is gated behind the same preference used for the confidence threshold, signon.generation.confidenceThreshold.
    * This is a string pref that disables the model if its value is "-1". Otherwise, its value should be a string representation of a float [0,1] (e.g. "0.5") which indicates that the model should be enabled with the given confidence threshold.
    * Using the model is enabled by default on desktop but disabled by default on mobile (GeckoView) due to Bug 1618058.
* Fixed some existing tests that were broken as a result of this change.
* New test(s) will be added in a subsequent commit.

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

--HG--
extra : moz-landing-system : lando
2020-03-21 20:53:09 +00:00
..
docs Bug 1577329 - Convert index.rst to markdown r=njn 2019-09-05 02:21:13 +00:00
init Bug 1595244 - Use field labels and attributes to determine new-password field types r=MattN 2020-03-21 20:53:09 +00:00
parser Bug 1617369 - Reformat libpref/ using rustfmt r=njn 2020-03-02 10:37:29 +00:00
test Bug 1606182 - add python-test using python3 to make check r=Callek 2019-12-30 18:02:23 +00:00
Preferences.cpp Bug 1619032 - Register 'mirror: always' StaticPref callbacks after pref values have been read. r=njn 2020-03-17 04:11:35 +00:00
Preferences.h Bug 1579367 - Initialize XPCJSContext explicitly, after loading user prefs. r=kmag 2019-11-22 12:40:17 +00:00
SharedPrefMap.cpp
SharedPrefMap.h
StaticPrefsBase.h Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown 2020-02-27 17:39:15 +00:00
components.conf
greprefs.js Bug 1576546 - Add various explanatory comments to the top of prefs files. r=KrisWright 2019-08-26 16:40:10 +00:00
moz.build Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart 2020-02-21 00:05:17 +00:00
nsIPrefBranch.idl
nsIPrefLocalizedString.idl
nsIPrefService.idl
nsIRelativeFilePref.idl
nsRelativeFilePref.h