mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 21:00:23 +01:00
59 lines
2.0 KiB
HTML
59 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<script src="firstPossibleCall.js"></script>
|
|
<html>
|
|
<head>
|
|
<title>Test</title>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<link href="testIcon.svg" type="image/png" rel="icon">
|
|
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
|
|
</head>
|
|
<body>
|
|
<div id="top">
|
|
<h1>top Test</h1>
|
|
<img class="display"><br>
|
|
Hash: <span class="hash"></span> (isPointInPath: <span class="isPointInPath"></span>)
|
|
<button>refresh</button>
|
|
</div>
|
|
<div id="iframe">
|
|
<h1>iFrame Test. Thanks to DocumentRoot.</h1>
|
|
<img class="display"><br>
|
|
Hash: <span class="hash"></span> (isPointInPath: <span class="isPointInPath"></span>)
|
|
<iframe sandbox="allow-same-origin" style="display:none"></iframe>
|
|
<button>refresh</button>
|
|
</div>
|
|
</div>
|
|
<div id="iframe2">
|
|
<h1>iFrame Test 2 - with URL</h1>
|
|
<img class="display"><br>
|
|
Hash: <span class="hash"></span> (isPointInPath: <span class="isPointInPath"></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> (isPointInPath: <span class="isPointInPath"></span>)
|
|
<iframe src="http://example.org" style="display:none"></iframe>
|
|
<button>refresh</button>
|
|
</div>
|
|
<div id="iframe4">
|
|
<h1>iFrame Test 4 - different access 1</h1>
|
|
<img class="display"><br>
|
|
Hash: <span class="hash"></span> (isPointInPath: <span class="isPointInPath"></span>)
|
|
<button>refresh</button>
|
|
</div>
|
|
<div id="iframe5">
|
|
<h1>iFrame Test 5 - different access 2</h1>
|
|
<img class="display"><br>
|
|
Hash: <span class="hash"></span> (isPointInPath: <span class="isPointInPath"></span>)
|
|
<button>refresh</button>
|
|
</div>
|
|
<div id="iframe6">
|
|
<h1>iFrame Test 6 - different access 3</h1>
|
|
<img class="display"><br>
|
|
Hash: <span class="hash"></span> (isPointInPath: <span class="isPointInPath"></span>)
|
|
<button>refresh</button>
|
|
</div>
|
|
<script src="test.js"></script>
|
|
</body></html> |