tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

autofill-prefilled-value.html (503B)


      1 <!doctype html>
      2 <input type=text value="JOHN DOE">
      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(); // previewValue setter depends on the reframe posted by markAsAutoCompletableField() having being processed...
      7  input.previewValue = "Autofill";
      8  input.autofillState = "preview";
      9 </script>