dom/base/crashtests/1693049.html
author William Durand <wdurand@mozilla.com>
Sat, 23 Oct 2021 15:10:40 +0000
changeset 596797 226ea4af4493332137b513239b5c4506ee14dffe
parent 572735 fb3ba9b86cad4d14a9aa51a295c50e8af7b7a4f0
permissions -rw-r--r--
Bug 1736684 - Part 1: Add test coverage for the search-detection built-in add-on (client side). r=rpl This patch adds a new test file containing a test case to cover the two main client side scenarios. Differential Revision: https://phabricator.services.mozilla.com/D129050

<!DOCTYPE html>
<html>
<head>
    <style>

        * {
            all: initial;
            display: table-row-group !important
        }
    </style>
    <script>
      window.addEventListener('load', () => {
        const mspace = document.getElementById('id_0')
        const tfoot = document.createElement('tfoot')
        const h5 = document.createElement('h5')
        document.documentElement.appendChild(tfoot)
        document.documentElement.appendChild(h5)
        const range = new Range()
        range.setStart(tfoot, NaN)
        setTimeout(async () => selection.extend(h5, Nan), 107)
        const selection = document.getSelection()
        selection.addRange(range)
        selection.modify('move', 'backward', 'character')
        range.surroundContents(mspace)
      })
    </script>
</head>
<mspace id='id_0'></mspace>
<input type='reset'>
</html>