Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Issue 2806803003: Make OffscreenCanvas WebGL(2) context consider taintedness of image source (Closed)

Created:
3 years, 8 months ago by xlai (Olivia)
Modified:
3 years, 8 months ago
CC:
chromium-reviews, dshwang, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, Justin Novosad, haraken, dglazkov+blink, Rik, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make OffscreenCanvas WebGL(2) context consider taintedness of image source BUG=696222 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2806803003 Cr-Commit-Position: refs/heads/master@{#464467} Committed: https://chromium.googlesource.com/chromium/src/+/a618ae85f99de9dfcd3596d40e247b92b52eb745

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : layout test #

Patch Set 4 : async test #

Patch Set 5 : rebase #

Total comments: 2

Messages

Total messages: 15 (8 generated)
xlai (Olivia)
junov@: pls take a look at the security layout test and some general change in ...
3 years, 8 months ago (2017-04-10 19:03:14 UTC) #3
Justin Novosad
lgtm with comments. Should we upstream the test to webgl conformance tests? https://codereview.chromium.org/2806803003/diff/80001/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp File third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp ...
3 years, 8 months ago (2017-04-12 14:53:41 UTC) #4
xlai (Olivia)
On 2017/04/12 14:53:41, Justin Novosad wrote: > Should we upstream the test to webgl conformance ...
3 years, 8 months ago (2017-04-12 19:37:29 UTC) #5
Ken Russell (switch to Gerrit)
On 2017/04/12 19:37:29, xlai (Olivia) wrote: > On 2017/04/12 14:53:41, Justin Novosad wrote: > > ...
3 years, 8 months ago (2017-04-12 23:31:14 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2806803003/80001
3 years, 8 months ago (2017-04-13 16:01:28 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/a618ae85f99de9dfcd3596d40e247b92b52eb745
3 years, 8 months ago (2017-04-13 18:05:53 UTC) #14
xlai (Olivia)
3 years, 8 months ago (2017-04-19 20:35:30 UTC) #15
Message was sent while issue was closed.
On 2017/04/12 23:31:14, Ken Russell wrote:
> On 2017/04/12 19:37:29, xlai (Olivia) wrote:
> > On 2017/04/12 14:53:41, Justin Novosad wrote:
> > > Should we upstream the test to webgl conformance tests?
> > > 
> > 
> > I'm not quite sure whether it's fine to upload a cross-origin security test
> > instead of a functionality test to webgl conformance test suite. kbr@: WDYT?
> 
> Yes, please do add tests to the WebGL conformance suite. There are already
some
> tests for properly rejecting cross-origin HTMLImageElements, and tainted
> HTMLCanvasElements. Please see these tests:
> 
> sdk/tests/conformance/textures/misc/origin-clean-conformance.html
> sdk/tests/conformance/more/functions/readPixelsBadArgs.html
> sdk/tests/conformance/more/functions/texImage2DHTML.html
> sdk/tests/conformance/more/functions/texSubImage2DHTML.html
> 
> If you have any questions about the structure of the tests please tell me. One
> possibly confusing note is that "SOP" in some of these tests stands for
> "Standard Operating Procedure".
> 
> LGTM

As a follow-up of this CL, I've created a GitHub pull request 
https://github.com/KhronosGroup/WebGL/pull/2376
to add security tests.

Powered by Google App Engine
This is Rietveld 408576698