3 input { height:
4em; font-family: system-ui }
5 <input value=
"Autofill">
7 let input
= SpecialPowers
.wrap(document
.querySelector("input"));
8 SpecialPowers
.Cc
["@mozilla.org/satchel/form-fill-controller;1"].getService(SpecialPowers
.Ci
.nsIFormFillController
).markAsAutoCompletableField(input
);
9 input
.getBoundingClientRect(); // previewValue setter depends on the reframe posted by markAsAutoCompletableField() having being processed...
10 input
.previewValue
= "Autofill";
11 input
.autofillState
= "preview";