Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #16699 - jdm:make-cross-origin-image-tests-fail, r=ajef…
…frey,jgraham Make cross-origin canvas drawing tests use a same-origin redirect. These tests either pass or maintain existing known failures in Firefox and Chrome, and expose the problem in our current implementation that #15887 is addressing. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16699) <!-- Reviewable:end -->
- Loading branch information
Showing
35 changed files
with
648 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...semantics/embedded-content/the-canvas-element/security.drawImage.canvas.redirect.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[security.drawImage.canvas.redirect.html] | ||
type: testharness | ||
[drawImage of unclean canvas makes the canvas origin-unclean] | ||
expected: FAIL | ||
|
5 changes: 5 additions & 0 deletions
5
.../semantics/embedded-content/the-canvas-element/security.drawImage.image.redirect.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[security.drawImage.image.redirect.html] | ||
type: testharness | ||
[drawImage of different-origin image makes the canvas origin-unclean] | ||
expected: FAIL | ||
|
5 changes: 5 additions & 0 deletions
5
...s/embedded-content/the-canvas-element/security.pattern.canvas.fillStyle.redirect.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[security.pattern.canvas.fillStyle.redirect.html] | ||
type: testharness | ||
[Setting fillStyle to a pattern of an unclean canvas makes the canvas origin-unclean] | ||
expected: FAIL | ||
|
5 changes: 5 additions & 0 deletions
5
...embedded-content/the-canvas-element/security.pattern.canvas.strokeStyle.redirect.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[security.pattern.canvas.strokeStyle.redirect.html] | ||
type: testharness | ||
[Setting strokeStyle to a pattern of an unclean canvas makes the canvas origin-unclean] | ||
expected: FAIL | ||
|
5 changes: 5 additions & 0 deletions
5
...tics/embedded-content/the-canvas-element/security.pattern.canvas.timing.redirect.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[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 | ||
|
5 changes: 5 additions & 0 deletions
5
...l/semantics/embedded-content/the-canvas-element/security.pattern.create.redirect.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[security.pattern.create.redirect.html] | ||
type: testharness | ||
[Creating an unclean pattern does not make the canvas origin-unclean] | ||
expected: FAIL | ||
|
5 changes: 5 additions & 0 deletions
5
...ml/semantics/embedded-content/the-canvas-element/security.pattern.cross.redirect.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[security.pattern.cross.redirect.html] | ||
type: testharness | ||
[Using an unclean pattern makes the target canvas origin-unclean, not the pattern canvas] | ||
expected: FAIL | ||
|
5 changes: 5 additions & 0 deletions
5
...cs/embedded-content/the-canvas-element/security.pattern.image.fillStyle.redirect.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[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 | ||
|
5 changes: 5 additions & 0 deletions
5
.../embedded-content/the-canvas-element/security.pattern.image.strokeStyle.redirect.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[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 | ||
|
5 changes: 5 additions & 0 deletions
5
...adata/html/semantics/embedded-content/the-canvas-element/security.reset.redirect.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[security.reset.redirect.html] | ||
type: testharness | ||
[Resetting the canvas state does not reset the origin-clean flag] | ||
expected: FAIL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1127,3 +1127,4 @@ | |
[top: calc(2 * 2px) (standards)] | ||
expected: | ||
if os == "mac": FAIL | ||
|
Oops, something went wrong.