1
0
Fork 0
firefox/layout/reftests/forms/textarea/autofill.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

9 lines
531 B
HTML

<!doctype html>
<textarea style="resize: none;"></textarea>
<script>
let textarea = SpecialPowers.wrap(document.querySelector("textarea"));
SpecialPowers.Cc["@mozilla.org/satchel/form-fill-controller;1"].getService(SpecialPowers.Ci.nsIFormFillController).markAsAutoCompletableField(textarea);
textarea.getBoundingClientRect(); // previewValue setter depends on the reframe posted by markAsAutoCompletableField() having being processed...
textarea.previewValue = "Autofill";
textarea.autofillState = "autofill";
</script>