Commit Graph

64 Commits

Author SHA1 Message Date
Benoit Jacob
3f7d139bd9 Bug 656277 - Prevent loading WebGL textures from cross-domain images - r=bzbarsky, a=jpr
This blocks using cross-domain images and tainted canvases as WebGL textures, in response to a timing attack allowing to get approximations of cross domain images' pixel data.

This is known to break legitimate Web content (e.g. bug 662570), so it's sad to have to land this. In the hopefully near future, a way forward will be implemented allowing affected Web content to resume working: we will allow cross-domain textures that have CORS approval. This is being coordinated with other WebGL implementers on the WebGL mailing lists.
2011-06-07 13:47:54 -04:00
Benoit Jacob
2980ccd7c4 Bug 659349 - WebGL allows access to uninitialised graphics memory - r=jrmuizel
GLContext::ClearSafely() wasn't really safe, it was making naive assumptions about GL state and as a result, a WebGL script could obtain an uninitialized backbuffer.
2011-05-26 14:24:48 -04:00
Benoit Jacob
2c0eb7e54e Bug 657748 - Update ANGLE to r653 - a=joe
This ANGLE update fixes bugs, brings large performance improvements, and adds major new features that web devs are looking forward to: vertex shader texture lookup and float textures.

http://code.google.com/p/angleproject/

This update is also needed because the version we're currently using is the chrome_m10 branch and that's no longer maintained. This update will make it much easier to apply security fixes if needed.
2011-05-24 11:05:56 -04:00
Benoit Jacob
3b22833d8a Bug 636942 - stencil separate param validation must now occur on draw calls - r=jrmuizel
We were validating these params when they're set, and that was non-conformant behavior.
2011-05-20 15:53:53 -04:00
Benoit Jacob
a392b3f339 Bug 636913 - fix buffer-preserve-test.html so it works in the mochitest - r=joedrew
This was filed upstream at:
http://www.khronos.org/bugzilla/show_bug.cgi?id=472

This just moves around the canvas in the html so it's visible, so it actually gets composited. Otherwise the test fails.
2011-05-20 15:53:53 -04:00
Benoit Jacob
c8c2f484a2 Bug 636913 - implement the WebGL backbuffer clear semantics - r=joedrew
This implements the WebGL backbuffer clearing behavior when preserveDrawingBuffer=false
2011-05-20 15:53:53 -04:00
Benoit Jacob
779f99fd6c Bug 630672 - fixes for WebGL OES_texture_float extension - r=joedrew
This fixes a few issues in Vlad's patch: pass test, break reference cycle, fix leak
2011-05-20 15:53:53 -04:00
Vladimir Vukicevic
4b2230fe03 Bug 630672 - implement WebGL OES_texture_float extension - r=bjacob
This implements floating-point textures in WebGL
2011-05-20 15:53:53 -04:00
Benoit Jacob
b9642f26a8 Bug 657190 - the WebGL mochitest is downloading images from internet - r=philor
This patch checks in the image in question so we don't download it from internet anymore. Was causing intermittent test failures.
2011-05-20 15:53:53 -04:00
Joe Drew
e0a8d65434 Bug 640887 - Ignore canvas-test on Windows XP, since it fails most of the time; r=bjacob 2011-04-11 09:12:17 -04:00
Marco Perez
e86148e927 Bug 647468 - make $(TAR) use stdin/stdout explicitly in content/canvas/test/webgl/Makefile.in; r=bjacob 2011-04-11 00:49:12 -04:00
Benoit Jacob
be066bd5d0 Bug 635059 - Update WebGL test suite to version 1.0.0 from khronos.org - a=NPOTB 2011-03-03 11:02:36 -05:00
Benoit Jacob
e7797b975e Bug 636613 - Let WebGL mochitest run on Windows XP - r=jrmuizel, a=joe 2011-03-01 17:25:22 -05:00
Wes Johnston
1ae3289ab2 backout logging for bug 634532 a=cleanup-test, DONTBUILD 2011-02-17 11:33:50 -08:00
Wes Johnston
6f5dee4313 Bug 634532 - Add some logging to debug random oranges r=dougt, a=input-is-good 2011-02-16 09:45:26 -08:00
Benoit Jacob
bf6803e6ae Bug 634032 - remove FIXME in test list filenames - r=vlad, a=joe
--HG--
rename : content/canvas/test/webgl/00_testFIXME_list.txt => content/canvas/test/webgl/00_test_list.txt
rename : content/canvas/test/webgl/conformance/00_testFIXME_list.txt => content/canvas/test/webgl/conformance/00_test_list.txt
2011-02-14 16:39:55 -05:00
Benoit Jacob
f1f9b80cdd Bug 631643 - Check for ARB_ES2_compatibility before using it, fix MAX_VARYING_VECTORS emulation, clean up getParameters - r=vlad, a=jrmuizel 2011-02-11 18:11:30 -05:00
Benoit Jacob
7f6e80fbdd Bug 633622 - Make the webgl mochitest use ANGLE on test machines - r=vlad, a=hardblocker 2011-02-14 12:04:54 -05:00
Benoit Jacob
414569f071 oops -- fix list of webgl tests expected to fail -- r+a=bustage 2011-02-12 17:12:08 -05:00
Benoit Jacob
b0a4e99d3c Bug 632546 - pass is-object test - r=vlad, a=jrmuizel 2011-02-11 18:11:30 -05:00
Kyle Huey
9132ccf4bc Backout 2011-02-11 23:08:16 -05:00
Benoit Jacob
aeb24b4fe0 Bug 632546 - pass is-object test - r=vlad, a=jrmuizel 2011-02-11 18:11:30 -05:00
Vladimir Vukicevic
1e4ebe844d b=630177, update webgl tests for slice->subarray renaming, a=block 2011-02-01 17:43:55 -08:00
Jonas Sicking
e0cf36d329 Backed out changesets 808970eca6d5 and 84c8b33619e0 due to continued orange. a=bustage 2011-02-01 16:45:54 -08:00
Jonas Sicking
bf711df83f Fix orange from bug 630117. a=bustage 2011-02-01 16:19:22 -08:00
Benoit Jacob
0e625ec75b Bug 629933 - WebGL mochitest mistakenly disabled on Mac OS 10.6 - r=vlad, a=obviously-should-be-blocking2.0 2011-01-29 22:31:21 -05:00
Benoit Jacob
b5bb1fe80d Bug 628403 - rename webgl.prefer_gl to webgl.prefer-native-gl - r=vlad, a=joe 2011-01-28 21:12:25 -05:00
Benoit Jacob
950ed5f435 Bug 628403 - introduce webgl.force-enabled and webgl.disabled prefs - r=vlad, a=joe 2011-01-28 21:12:24 -05:00
Benoit Jacob
95e9471ced CLOSED TREE - Bug 629396 - update list of failing webgl tests after driver update on test slaves to fix WebGL mochitest failures - r+a=bustage 2011-01-27 12:26:11 -05:00
Benoit Jacob
80aa7bed71 Bug 626996 - WebGL tests shouldn't be loading pages from the Internet - r=ehsan a=jrmuizel
--HG--
extra : rebase_source : c5760b5cedd4077a5e3d01985f9f0bbd103d1924
2011-01-20 17:24:47 -05:00
Benoit Jacob
65754f9740 CLOSED TREE Bug 582053 - that test fails on windows - r+a=bustage 2011-01-14 16:17:00 -05:00
Benoit Jacob
62991b997f Bug 582053 - gl-teximage passes now, remove from failing-tests list - r+a=bustage 2011-01-14 14:21:15 -05:00
Benoit Jacob
6afc30e375 Bug 582053 - Integrate WebGL conformance suite as a mochitest - r=vlad, a=blocking2.0
--HG--
rename : content/canvas/test/webgl/failing_tests.txt => content/canvas/test/webgl/failing_tests_linux.txt
2011-01-14 13:40:05 -05:00
Vladimir Vukicevic
1160e65f4c [no bug]; update webgl test; a=npotb 2010-12-22 19:25:48 -08:00
Vladimir Vukicevic
5a5c544bbf b=619798; upgrade ANGLE to r511; r+a=vlad 2010-12-16 12:49:06 -08:00
Vladimir Vukicevic
2a475c1a6c update in-tree webgl conformance tests copy; r=npotb 2010-12-03 14:44:01 -08:00
Vladimir Vukicevic
5f7897cd98 b=612334; update in-tree webgl tests from svn; npotb 2010-11-16 20:33:04 -08:00
Vladimir Vukicevic
36f8014890 b=539771; Add support for context attribs to canvas; r=jmuizelaar 2010-11-16 20:33:03 -08:00
Benoit Jacob
ab9bf7d5a8 Bug 607774 - Implement the spec on Renderbuffers and Framebuffers - r=vladimir 2010-11-05 15:57:58 -04:00
Benoit Jacob
f2663173fe Bug 593496 - Fix WebGL textures: conversions, flipping, premultiplication, unpack alignment - r=vladimir 2010-10-15 17:50:15 -04:00
Vladimir Vukicevic
d6d667fe54 Update in-tree WebGL test suite to r12629 2010-10-09 12:44:24 -07:00
Vladimir Vukicevic
5585ebca9f b=582053; integrate webgl confromance suite as mochitest, angle followup; r=bjacob 2010-09-13 08:53:52 -07:00
Vladimir Vukicevic
c3fb6786b3 b=593850; [webgl] fix bad-arguments and null-object-behaviour tests; r=bjacob, a=b 2010-09-13 08:57:25 -07:00
Vladimir Vukicevic
c3b2630ecb b=593850; [webgl] remove bogus webgl debug utils from tests; r=bjacob 2010-09-13 08:56:13 -07:00
Vladimir Vukicevic
d8a5653695 b=593850; [webgl] fix test null-uniform-location; r=bjacob 2010-09-13 08:56:01 -07:00
Vladimir Vukicevic
15f8e02ea1 b=593850; [webgl] fix gl-uniform-arrays test; r=bjacob 2010-09-13 08:55:45 -07:00
Vladimir Vukicevic
66e6b95063 b=593850; [webgl] fix gl-scissor test; r=bjacob 2010-09-13 08:55:29 -07:00
Robert Sayre
59773ae503 Merge mozilla-central to tracemonkey. 2010-09-10 11:47:11 -04:00
Ginn Chen
472f5bdab7 Bug 594734 Use $(TAR) instead of tar for content/canvas/test/webgl r=bjacob a=testing file only 2010-09-10 20:56:33 +08:00
Robert Sayre
edb7aca0d0 merge mozilla-central to tracemonkey. 2010-09-08 10:33:07 -04:00