1window.coverityAutofill = { 2 syncPasswords: function (pwId, pw2Id, dotnetRef) { 3 const trySync = () => { 4 const pw = document.getElementById(pwId); 5 const pw2 = document.getElementById(pw2Id); 6 if (!pw || !pw2) return; 7 8 const v1 = pw.value || ""; 9 const v2 = pw2.value || ""; 10 11 // Only push if the browser actually filled something 12 if (v1.length > 0 || v2.length > 0) { 13 // Dispatch events so Syncfusion/Blazor listeners wake up too 14 pw.dispatchEvent(new Event("input", { bubbles: true })); 15 pw.dispatchEvent(new Event("change", { bubbles: true })); 16 pw2.dispatchEvent(new Event("input", { bubbles: true })); 17 pw2.dispatchEvent(new Event("change", { bubbles: true })); 18 19 // Also push values directly into the Blazor model (the reliable path) 20 dotnetRef.invokeMethodAsync("ReceiveAutofilledPasswords", v1, v2); 21 } 22 }; 23 24 // Autofill timing varies by browser; do a few quick retries 25 setTimeout(trySync, 50); 26 setTimeout(trySync, 200); 27 setTimeout(trySync, 500); 28 setTimeout(trySync, 1000); 29 } 30};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.