<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>223321</bug_id>
          
          <creation_ts>2021-03-16 23:37:34 -0700</creation_ts>
          <short_desc>webgl/1.0.4/conformance/reading/read-pixels-test.html fails</short_desc>
          <delta_ts>2021-03-23 23:38:13 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebGL</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>222812</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kimmo Kinnunen">kkinnunen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>kbr</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1740410</commentid>
    <comment_count>0</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-16 23:37:34 -0700</bug_when>
    <thetext>webgl/1.0.4/conformance/reading/read-pixels-test.html fails</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740529</commentid>
    <comment_count>1</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-17 01:19:34 -0700</bug_when>
    <thetext>https://www.khronos.org/registry/webgl/sdk/tests/conformance/reading/read-pixels-test.html?webglVersion=1&amp;quiet=0&amp;quick=1

 
Checks that ReadPixels works as expected.

On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.

antialias = false



checking: in range
PASS color pixel at 0, 0 should be about 51,153,102,255, was = 51,153,102,255
PASS color pixel at 1, 0 should be about 51,153,102,255, was = 51,153,102,255
PASS color pixel at 0, 1 should be about 51,153,102,255, was = 51,153,102,255
PASS color pixel at 1, 1 should be about 51,153,102,255, was = 51,153,102,255

checking: off top left
FAIL color pixel at 0, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 0, 1 should be about 19,72,0,198, was = 0,0,0,0
PASS color pixel at 1, 1 should be about 51,153,102,255, was = 51,153,102,255

checking: off bottom right
PASS color pixel at 0, 0 should be about 51,153,102,255, was = 51,153,102,255
FAIL color pixel at 1, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 0, 1 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 1 should be about 19,72,0,198, was = 0,0,0,0

checking: completely off top 
FAIL color pixel at 0, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 0, 1 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 1 should be about 19,72,0,198, was = 0,0,0,0

checking: completely off bottom
FAIL color pixel at 0, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 0, 1 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 1 should be about 19,72,0,198, was = 0,0,0,0

checking: completely off left
FAIL color pixel at 0, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 0, 1 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 1 should be about 19,72,0,198, was = 0,0,0,0

checking: completeley off right
FAIL color pixel at 0, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 0, 1 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 1 should be about 19,72,0,198, was = 0,0,0,0
PASS getError was expected value: NO_ERROR : there should be no GL errors

check non-default format or type
PASS getError was expected value: INVALID_ENUM : Should not be able to read as DEPTH_COMPONENT
PASS getError was expected value: INVALID_ENUM : Should not be able to read as DEPTH_STENCIL
PASS getError was expected value: INVALID_ENUM : Should not be able to read as 0x8229
PASS getError was expected value: INVALID_ENUM : Should not be able to read as RGBA4
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as LUMINANCE
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as LUMINANCE_ALPHA
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as 0x1903
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as 0x8228
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as 0x8d99
PASS getError was expected value: INVALID_ENUM : Should not be able to read as 0x84fa
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as UNSIGNED_SHORT
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as SHORT
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as BYTE
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as UNSIGNED_INT
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as 0x8368

check invalid combinations of format/type
IMPLEMENTATION_COLOR_READ_FORMAT: RGBA
IMPLEMENTATION_COLOR_READ_TYPE: UNSIGNED_BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / UNSIGNED_SHORT_5_6_5
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / UNSIGNED_SHORT_5_5_5_1
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / UNSIGNED_SHORT_4_4_4_4
PASS getError was expected value: NO_ERROR : Should be able to read as RGBA / UNSIGNED_BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / UNSIGNED_BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / UNSIGNED_BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / UNSIGNED_BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / UNSIGNED_BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / UNSIGNED_SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / UNSIGNED_SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / UNSIGNED_SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / UNSIGNED_SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / UNSIGNED_SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / UNSIGNED_INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / UNSIGNED_INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / UNSIGNED_INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / UNSIGNED_INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / UNSIGNED_INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / FLOAT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / FLOAT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / FLOAT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / FLOAT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / FLOAT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / 0x8d61
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / 0x8d61
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / 0x8d61
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / 0x8d61
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / 0x8d61

check reading with lots of drawing
PASS actual is expected
PASS actual is expected
PASS actual is expected
PASS getError was expected value: NO_ERROR : there should be no GL errors

check readback into Uint8ClampedArray
PASS getError was expected value: NO_ERROR : there should be no GL errors reading back into a Uint8ClampedArray
PASS Readback into Uint8ClampedArray worked successfully
PASS `gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8Array(4));` should not throw.
PASS `gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8Array(new ArrayBuffer(4)));` should not throw.
PASS `gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8ClampedArray(4));` should not throw.
PASS `gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8ClampedArray(new ArrayBuffer(4)));` should not throw.
antialias = true



checking: in range
PASS color pixel at 0, 0 should be about 51,153,102,255, was = 51,153,102,255
PASS color pixel at 1, 0 should be about 51,153,102,255, was = 51,153,102,255
PASS color pixel at 0, 1 should be about 51,153,102,255, was = 51,153,102,255
PASS color pixel at 1, 1 should be about 51,153,102,255, was = 51,153,102,255

checking: off top left
FAIL color pixel at 0, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 0, 1 should be about 19,72,0,198, was = 0,0,0,0
PASS color pixel at 1, 1 should be about 51,153,102,255, was = 51,153,102,255

checking: off bottom right
PASS color pixel at 0, 0 should be about 51,153,102,255, was = 51,153,102,255
FAIL color pixel at 1, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 0, 1 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 1 should be about 19,72,0,198, was = 0,0,0,0

checking: completely off top 
FAIL color pixel at 0, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 0, 1 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 1 should be about 19,72,0,198, was = 0,0,0,0

checking: completely off bottom
FAIL color pixel at 0, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 0, 1 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 1 should be about 19,72,0,198, was = 0,0,0,0

checking: completely off left
FAIL color pixel at 0, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 0, 1 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 1 should be about 19,72,0,198, was = 0,0,0,0

checking: completeley off right
FAIL color pixel at 0, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 0 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 0, 1 should be about 19,72,0,198, was = 0,0,0,0
FAIL color pixel at 1, 1 should be about 19,72,0,198, was = 0,0,0,0
PASS getError was expected value: NO_ERROR : there should be no GL errors

check non-default format or type
FAIL getError expected: INVALID_ENUM. Was INVALID_OPERATION : Should not be able to read as DEPTH_COMPONENT
PASS getError was expected value: INVALID_ENUM : Should not be able to read as DEPTH_STENCIL
PASS getError was expected value: INVALID_ENUM : Should not be able to read as 0x8229
PASS getError was expected value: INVALID_ENUM : Should not be able to read as RGBA4
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as LUMINANCE
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as LUMINANCE_ALPHA
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as 0x1903
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as 0x8228
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as 0x8d99
PASS getError was expected value: INVALID_ENUM : Should not be able to read as 0x84fa
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as UNSIGNED_SHORT
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as SHORT
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as BYTE
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as UNSIGNED_INT
PASS getError was one of: INVALID_ENUM or INVALID_OPERATION : Should not be able to read as 0x8368

check invalid combinations of format/type
IMPLEMENTATION_COLOR_READ_FORMAT: RGBA
IMPLEMENTATION_COLOR_READ_TYPE: UNSIGNED_BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / UNSIGNED_SHORT_5_6_5
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / UNSIGNED_SHORT_5_5_5_1
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / UNSIGNED_SHORT_4_4_4_4
PASS getError was expected value: NO_ERROR : Should be able to read as RGBA / UNSIGNED_BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / UNSIGNED_BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / UNSIGNED_BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / UNSIGNED_BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / UNSIGNED_BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / BYTE
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / UNSIGNED_SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / UNSIGNED_SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / UNSIGNED_SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / UNSIGNED_SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / UNSIGNED_SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / SHORT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / UNSIGNED_INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / UNSIGNED_INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / UNSIGNED_INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / UNSIGNED_INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / UNSIGNED_INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / INT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / FLOAT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / FLOAT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / FLOAT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / FLOAT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / FLOAT
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGBA / 0x8d61
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as RGB / 0x8d61
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / 0x8d61
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as ALPHA / 0x8d61
PASS getError was one of: INVALID_OPERATION or INVALID_ENUM : Should not be able to read as LUMINANCE / 0x8d61

check reading with lots of drawing
PASS actual is expected
PASS actual is expected
PASS actual is expected
PASS getError was expected value: NO_ERROR : there should be no GL errors

check readback into Uint8ClampedArray
PASS getError was expected value: NO_ERROR : there should be no GL errors reading back into a Uint8ClampedArray
PASS Readback into Uint8ClampedArray worked successfully
PASS `gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8Array(4));` should not throw.
PASS `gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8Array(new ArrayBuffer(4)));` should not throw.
PASS `gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8ClampedArray(4));` should not throw.
PASS `gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8ClampedArray(new ArrayBuffer(4)));` should not throw.
PASS successfullyParsed is true

TEST COMPLETE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740585</commentid>
    <comment_count>2</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-17 01:45:47 -0700</bug_when>
    <thetext>At least macOS 11.3, iMacPro1,1, Radeon Pro Vega 56</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1743172</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-03-23 23:38:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/75772729&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>