Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
service worker: Add tests for canvas tainting from video.
R=horo Bug: 780435 Change-Id: Ie8ae9cf8dca55f122a7b4a984ca0a96035b0099f Reviewed-on: https://chromium-review.googlesource.com/892683 Reviewed-by: Tsuyoshi Horo <horo@chromium.org> Commit-Queue: Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#532814}
- Loading branch information
1 parent
db29e4e
commit 0edd6ae
Showing
7 changed files
with
95 additions
and
24 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...er/fetch-canvas-tainting-cache.https.html → ...ch-canvas-tainting-image-cache.https.html
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
1 change: 1 addition & 0 deletions
1
...e-worker/fetch-canvas-tainting.https.html → ...er/fetch-canvas-tainting-image.https.html
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
16 changes: 16 additions & 0 deletions
16
service-workers/service-worker/fetch-canvas-tainting-video-cache.https.html
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,16 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>Service Worker: canvas tainting of the fetched video using cache responses</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/common/get-host-info.sub.js"></script> | ||
<script src="resources/test-helpers.sub.js?pipe=sub"></script> | ||
<script src="resources/fetch-canvas-tainting-tests.js"></script> | ||
<body> | ||
<script> | ||
do_canvas_tainting_tests({ | ||
resource_path: base_path() + 'resources/fetch-access-control.py?VIDEO', | ||
cache: true | ||
}); | ||
</script> | ||
</body> |
16 changes: 16 additions & 0 deletions
16
service-workers/service-worker/fetch-canvas-tainting-video.https.html
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,16 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>Service Worker: canvas tainting of the fetched video</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/common/get-host-info.sub.js"></script> | ||
<script src="resources/test-helpers.sub.js?pipe=sub"></script> | ||
<script src="resources/fetch-canvas-tainting-tests.js"></script> | ||
<body> | ||
<script> | ||
do_canvas_tainting_tests({ | ||
resource_path: base_path() + 'resources/fetch-access-control.py?VIDEO', | ||
cache: false | ||
}); | ||
</script> | ||
</body> |
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
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
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