Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: http3 OR http2
- Manifest: dom/tests/mochitest/bugs/mochitest.toml
<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=304459">Mozilla Bug 304459</a>
<p id="display"></p>
<div id="content" style="display: none">
<iframe id="frame"></iframe>
</div>
<pre id="test">
<script type="application/javascript">
function iframeLoaded()
{
var frame = document.getElementById("frame");
frame.onload = undefined;
}
function receiveMessage(evt)
{
ok(evt.data, "Prototype leaks across navigation");
SimpleTest.finish();
}
SimpleTest.waitForExplicitFinish();
window.addEventListener("message", receiveMessage);
var frame = document.getElementById("frame");
frame.onload = iframeLoaded;
frame.src = "iframe_bug304459-1.html"
</script>
</pre>
</body>
</html>