lcated score is higher than the confidenceThreshold */ static #isProbablyASignUpForm(formElement) { let score = FormScenarios.#cachedSignUpFormScore.get(formElement); if (!score) { let timerId = Glean.pwmgr.signupFormDetection.start(); try { const { rules, type } = SignUpFormRuleset; const results = rules.against(formElement); score = results.get(formElement).scoreFor(type); Glean.pwmgr.signupFormDetection.stopAndAccumulate(timerId); timerId = null; } finally { if (timerId) { Glean.pwmgr.signupFormDetection.cancel(timerId); } } FormScenarios.#cachedSignUpFormScore.set(formElement, score); } const threshold = FormScenarios.signupDetectionConfidenceThreshold; return score > threshold; } } XPCOMUtils.defineLazyPreferenceGetter( FormScenarios, "signupDetectionConfidenceThreshold", "signon.signupDetection.confidenceThreshold", "0.75" ); PK