Skip to content

Commit

Permalink
Merge pull request #1
Browse files Browse the repository at this point in the history
Add fixture for canvas polyfill retention test
  • Loading branch information
ghostwords authored Jul 31, 2020
2 parents 3edf06a + 2fd0b18 commit 70c60c8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions html/fingerprinting_canvas_hidpi.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<html>
<head>
<title>Privacy Badger canvas hidpi polyfill test page</title>
</head>
<body>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/hidpi-canvas.min.js"></script>
<canvas id="writetome" />
<script>
var canvas = document.getElementById("writetome");
var ctx = canvas.getContext("2d");
ctx.font = "30px Arial";
ctx.fillText("Hello World", 10, 50);
ctx.fillText("Hello Again", 50, 100);
</script>
</body>
</html>

0 comments on commit 70c60c8

Please sign in to comment.