autofill-preview-blank.html (340B)
1 <!doctype html> 2 <input type=text> 3 <script> 4 let input = SpecialPowers.wrap(document.querySelector("input")); 5 SpecialPowers.Cc["@mozilla.org/satchel/form-fill-controller;1"].getService(SpecialPowers.Ci.nsIFormFillController).markAsAutoCompletableField(input); 6 input.getBoundingClientRect(); 7 input.autofillState = "preview"; 8 </script>