tor-browser

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

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


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