Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<meta charset="utf-8">
<title>Test for Bug 927901</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 927901 **/
SimpleTest.waitForExplicitFinish();
var counter = 0;
window.onmessage = function(e) {
++counter;
is(e.data, "pass", "Accessing window.crypto.getRandomValues in the iframe should have succeeded!");
if (counter == 1) {
document.getElementById("testiframe").src =
} else if (counter == 2) {
SimpleTest.finish();
}
}
</script>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=927901">Mozilla Bug 927901</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
</pre>
</body>
</html>