Revert "Bug 1950748 part 3: Don't return a caret inside an editor when no editor is focused. r=morgan" as requested for causing accessibility crashes (bug 1977012).
This reverts commit aaf970807d281c28c1e937491719d996cb11648a.
This reverts commit f5f2e3cf4d34c2430372ba790d77620837d56b75.
This reverts commit 5565c5899c32c0b0f5446561a21c5b6499fd44c6.
<!--Copyright (c) 2024 The Khronos Group Inc.Use of this source code is governed by an MIT-style license that can befound in the LICENSE.txt file.--><!DOCTYPE html><html><head><metacharset="utf-8"><title>bufferSubData test to Wasm Memory 4GB in size.</title><linkrel="stylesheet"href="../../resources/js-test-style.css"/><scriptsrc="../../js/js-test-pre.js"></script><scriptsrc="../../js/webgl-test-utils.js"></script></head><body><canvasid="canvas"width="2"height="2"style="width: 40px; height: 40px;"></canvas><divid="description"></div><divid="console"></div><script>"use strict";description(document.title);debug("Tests that bufferSubData can be called on WebAssembly Memory of 4GB in size.");debug("");letwtu=WebGLTestUtils;letgl=wtu.create3DContext("canvas",undefined,2);constPAGE=65536;constSIZE=4*1024*1024*1024-PAGE;letview=newUint8Array(newWebAssembly.Memory({initial:SIZE/PAGE}).buffer);letexpectedData=newUint8Array([1,2]);constlength=expectedData.length;letsrcOffset=SIZE-length;view.set(expectedData,srcOffset);constdstByteOffset=4;letbuf=gl.createBuffer();gl.bindBuffer(gl.ARRAY_BUFFER,buf);gl.bufferData(gl.ARRAY_BUFFER,8,gl.STATIC_DRAW);gl.bufferSubData(gl.ARRAY_BUFFER,dstByteOffset,view,srcOffset,length);wtu.glErrorShouldBe(gl,gl.NO_ERROR);letactualData=newUint8Array(length);gl.getBufferSubData(gl.ARRAY_BUFFER,dstByteOffset,actualData);for(leti=0;i<length;i++){shouldBe(`actualData[${i}]`,`expectedData[${i}]`);}varsuccessfullyParsed=true;</script><scriptsrc="../../js/js-test-post.js"></script></body></html>