Use the origin of the actual image response when determining if a canvas is origin clean.

This commit is contained in:
SendilKumar N 2017-03-09 20:30:01 +08:00 committed by Josh Matthews
parent d855c929ef
commit 5acee23f5d
22 changed files with 79 additions and 92 deletions

View file

@ -1,5 +0,0 @@
[security.drawImage.canvas.redirect.html]
type: testharness
[drawImage of unclean canvas makes the canvas origin-unclean]
expected: FAIL

View file

@ -1,5 +0,0 @@
[security.drawImage.image.redirect.html]
type: testharness
[drawImage of different-origin image makes the canvas origin-unclean]
expected: FAIL

View file

@ -1,5 +0,0 @@
[security.pattern.canvas.fillStyle.redirect.html]
type: testharness
[Setting fillStyle to a pattern of an unclean canvas makes the canvas origin-unclean]
expected: FAIL

View file

@ -1,5 +0,0 @@
[security.pattern.canvas.strokeStyle.redirect.html]
type: testharness
[Setting strokeStyle to a pattern of an unclean canvas makes the canvas origin-unclean]
expected: FAIL

View file

@ -1,5 +0,0 @@
[security.pattern.canvas.timing.redirect.html]
type: testharness
[Pattern safety depends on whether the source was origin-clean, not on whether it still is clean]
expected: FAIL

View file

@ -1,5 +0,0 @@
[security.pattern.create.redirect.html]
type: testharness
[Creating an unclean pattern does not make the canvas origin-unclean]
expected: FAIL

View file

@ -1,5 +0,0 @@
[security.pattern.cross.redirect.html]
type: testharness
[Using an unclean pattern makes the target canvas origin-unclean, not the pattern canvas]
expected: FAIL

View file

@ -1,5 +0,0 @@
[security.pattern.image.fillStyle.redirect.html]
type: testharness
[Setting fillStyle to a pattern of a different-origin image makes the canvas origin-unclean]
expected: FAIL

View file

@ -1,5 +0,0 @@
[security.pattern.image.strokeStyle.redirect.html]
type: testharness
[Setting strokeStyle to a pattern of a different-origin image makes the canvas origin-unclean]
expected: FAIL

View file

@ -1,5 +0,0 @@
[security.reset.redirect.html]
type: testharness
[Resetting the canvas state does not reset the origin-clean flag]
expected: FAIL