Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add canvas polyfill retention test
Browse files Browse the repository at this point in the history
STRML committed Jul 31, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 3edf06a commit ab10d34
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 fingerprintjs2 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 ab10d34

Please sign in to comment.