Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
type="text/css"?>
<!--
-->
<window title="Weakrefs"
<!-- test results are displayed in the html:body -->
<iframe type="content" id="ifr">
</iframe>
</body>
<!-- test code goes here -->
<script type="application/javascript"><![CDATA[
SimpleTest.waitForExplicitFinish();
var util = window.windowUtils;
var weakUtil = Cu.getWeakReference(util);
util = null;
function callback() {
ok(weakUtil.get(), "Should still be alive here");
SimpleTest.finish();
}
SpecialPowers.exactGC(callback);
]]></script>
</window>