1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-23 13:20:27 +01:00
CanvasBlocker/test/test.html

38 lines
968 B
HTML
Raw Normal View History

2017-01-31 20:59:57 +01:00
<!DOCTYPE html>
2017-08-13 23:44:31 +02:00
<script src="firstPossibleCall.js"></script>
2017-01-31 20:59:57 +01:00
<html>
<head>
<title>Test</title>
</head>
<body>
<div id="top">
<h1>top Test</h1>
<img class="display"><br>
2017-01-31 20:59:57 +01:00
Hash: <span class="hash"></span>
2017-04-23 00:25:33 +02:00
<button>refresh</button>
2017-01-31 20:59:57 +01:00
</div>
<div id="iframe">
<h1>iFrame Test. Thanks to DocumentRoot.</h1>
<img class="display"><br>
2017-01-31 20:59:57 +01:00
Hash: <span class="hash"></span>
<iframe sandbox="allow-same-origin" style="display:none"></iframe>
2017-04-23 00:25:33 +02:00
<button>refresh</button>
2017-01-31 20:59:57 +01:00
</div>
</div>
<div id="iframe2">
<h1>iFrame Test 2 - with URL</h1>
<img class="display"><br>
Hash: <span class="hash"></span>
<iframe src="?" sandbox="allow-same-origin" style="display:none"></iframe>
<button>refresh</button>
</div>
</div>
<div id="iframe3">
<h1>iFrame Test 3 - violating SOP</h1>
<img class="display"><br>
Hash: <span class="hash"></span>
<iframe src="http://example.org" style="display:none"></iframe>
<button>refresh</button>
</div>
2017-08-13 23:44:31 +02:00
<script src="test.js"></script>
2017-01-31 20:59:57 +01:00
</body></html>