editor/libeditor/crashtests/1443664.html
author Randell Jesup <rjesup@wgate.com>
Wed, 28 Sep 2022 02:10:18 +0000
changeset 636504 388419886525a4b8d6be986bc890f09e6c16052d
parent 636050 9b15baab6f77d09eca2956276f66fee97555e4a1
permissions -rw-r--r--
Bug 1791332: Add an OPFS-specific synchronous ordered cleanup queue r=asuth,dom-storage-reviewers The default test.add_cleanup() code from testharness.js in wpt executes the cleanups in parallel, and even if it wasn't in parallel it would be in FIFO order (the wrong order). This adds an OPFS-specific cleanup queue called once from the test cleanup list, and we process the list synchronously in LIFO order. Depends on D146203 Differential Revision: https://phabricator.services.mozilla.com/D157606

<style>
input:focus { counter-increment: c; }
</style>
<script>
function onLoad() {
  // For emulating the traditional behavior, collapse Selection to end of the
  // <body>, i.e., at the text node after the <input contenteditable>.
  getSelection().collapse(document.body, document.body.childNodes.length);
  document.querySelector("input[type=number][contenteditable]").select();
}
</script>
<body onload="onLoad()">
<input type="number" contenteditable>