gecko-dev/dom/security/test/general/file_block_toplevel_data_na...

17 строки
426 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Toplevel data navigation</title>
</head>
<body>
test1: clicking data: URI tries to navigate window<br/>
<!-- postMessage will not be sent if data: URI is blocked -->
<a id="testlink" href="data:text/html,<body>toplevel data: URI navigations
should be blocked</body>">click me</a>
<script>
document.getElementById('testlink').click();
</script>
</body>
</html>