mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #14081 - anholt:webgl-readpix-negative-width, r=emilio
webgl: out-of-bounds readPixels() fixes <!-- Please describe your changes on the following line: --> Fix crashes in two WebGL readPixels() tests by adding framebuffer size validation. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13901 <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14081) <!-- Reviewable:end -->
This commit is contained in:
commit
2601d8eb8b
7 changed files with 222 additions and 38 deletions
|
@ -174,9 +174,6 @@
|
|||
[WebGL test #171: gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE) threw exception TypeError: gl.getFramebufferAttachmentParameter is not a function]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #187: gl.checkFramebufferStatus(gl.FRAMEBUFFER) should not be 36053.]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #196: gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME) should be [object WebGLTexture\]. Threw exception TypeError: gl.getFramebufferAttachmentParameter is not a function]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
[readPixelsBadArgs.html]
|
||||
type: testharness
|
||||
expected:
|
||||
if os == "linux": CRASH
|
||||
if os == "mac": TIMEOUT
|
||||
[WebGL test #0: testReadPixels]
|
||||
expected: FAIL
|
||||
|
|
@ -1,8 +1,14 @@
|
|||
[read-pixels-pack-alignment.html]
|
||||
type: testharness
|
||||
expected:
|
||||
if os == "linux": CRASH
|
||||
if os == "mac": TIMEOUT
|
||||
[WebGL test #3: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
|
||||
[WebGL test #17: pixel should be 255,102,0,255. Was 0,0,0,0.]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #33: pixel should be 255,102,0,255. Was 0,0,0,0.]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #53: pixel should be 255,102,0,255. Was 0,0,0,0.]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #61: pixel should be 255,102,0,255. Was 0,0,0,0.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue