tor-browser

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

autofill-preview-line-height.html (558B)


      1 <!doctype html>
      2 <style>
      3  input { height: 4em; font-family: system-ui }
      4 </style>
      5 <input value="Autofill">
      6 <script>
      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";
     12 </script>