mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Use the origin of the actual image response when determining if a canvas is origin clean.
This commit is contained in:
parent
d855c929ef
commit
5acee23f5d
22 changed files with 79 additions and 92 deletions
|
@ -399550,7 +399550,7 @@
|
|||
"support"
|
||||
],
|
||||
"common/canvas-tests.js": [
|
||||
"2db347399bee84e76c01a15ca5c0c3006fcd4d4e",
|
||||
"329e3ae1cfde2ee0525302e6a3260faed3885f28",
|
||||
"support"
|
||||
],
|
||||
"common/css-red.txt": [
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
[security.drawImage.canvas.redirect.html]
|
||||
type: testharness
|
||||
[drawImage of unclean canvas makes the canvas origin-unclean]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[security.drawImage.image.redirect.html]
|
||||
type: testharness
|
||||
[drawImage of different-origin image makes the canvas origin-unclean]
|
||||
expected: FAIL
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[security.pattern.create.redirect.html]
|
||||
type: testharness
|
||||
[Creating an unclean pattern does not make the canvas origin-unclean]
|
||||
expected: FAIL
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[security.reset.redirect.html]
|
||||
type: testharness
|
||||
[Resetting the canvas state does not reset the origin-clean flag]
|
||||
expected: FAIL
|
||||
|
|
@ -2,3 +2,4 @@
|
|||
type: testharness
|
||||
[Adopting a node should make it same-origin-domain.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -101,4 +101,5 @@ function addCrossOriginRedirectYellowImage()
|
|||
img.className = "resource";
|
||||
img.src = get_host_info().HTTP_ORIGIN + "/common/redirect.py?location=" +
|
||||
get_host_info().HTTP_REMOTE_ORIGIN + "/images/yellow.png";
|
||||
document.body.appendChild(img);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue