Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android'
- Manifest: js/xpconnect/tests/chrome/chrome.toml
<?xml version="1.0"?>
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>