1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-03 03:56:26 +02:00

Added test for data URL pages

For #208.
This commit is contained in:
kkapsner 2018-07-16 00:05:33 +02:00
parent 95f8faed6f
commit 8ca23e37e1
4 changed files with 135 additions and 0 deletions

22
test/dataUrlTest.php Normal file
View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<title>data-URL Test</title>
<style>
iframe {
display: block;
box-sizing: border-box;
width: 100%;
height: 7em;
}
</style>
</head>
<body>
<h1>Normal iFrame</h1>
<iframe src="sendFingerprintTest.html"></iframe>
<h1>Data-URL iFrame</h1>
<iframe id="iframe" src="data:text/html;base64,<?php echo base64_encode(file_get_contents("sendFingerprintTest.html"));?>"></iframe>
<h1>iFrame code</h1>
<pre id="code"></pre>
<script src="dataUrlTest.js"></script>
</body></html>