DescriptionMake WebGL's texImage2D and texSubImage2D handle cross-origin ImageBitmap
Now that ImageBitmap has an origin-clean flag, this CL changes WebGL's
texImage2D(ImageBitmap) and texSubImage2D(ImageBitmap) so that it will
throw a security error when the ImageBitmap is not origin clean.
Also, a small change has been made to texImage2D::validateTexFunc.
BUG=576280
Committed: https://crrev.com/7f6ec1189d09fcf01cf6d4ea41ed43ec91dfdbac
Cr-Commit-Position: refs/heads/master@{#369025}
Patch Set 1 #
Total comments: 2
Patch Set 2 : add validateImageBitmap helper function & a layout test #
Total comments: 4
Patch Set 3 : layout tests includes both origin-clean and tainted-origin imagebitmap #
Total comments: 12
Patch Set 4 : update layout test #Patch Set 5 : layout test passed :) #
Total comments: 1
Messages
Total messages: 20 (5 generated)
|