2008-08-19 21:16:46 -07:00
|
|
|
<?xml version="1.0" ?>
|
|
|
|
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
|
|
|
|
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="reftest-wait">
|
2009-05-21 12:35:49 -07:00
|
|
|
<tree flex="20" id="t" ref="urn:data:row" datasources="" seltype="single" >
|
2008-08-19 21:16:46 -07:00
|
|
|
<treecols>
|
|
|
|
<treecol flex="1" id="id" label="id" sort="rdf:http://dummy/rdf#id" />
|
|
|
|
<splitter class="tree-splitter"/>
|
|
|
|
<treecol flex="1" id="title" label="title" sort="rdf:http://dummy/rdf#title" sortActive="true" sortDirection="ascending" /><splitter class="tree-splitter"/>
|
|
|
|
</treecols>
|
|
|
|
<template>
|
|
|
|
<treechildren>
|
|
|
|
<treeitem uri="rdf:*" seltype="single">
|
|
|
|
<treerow >
|
|
|
|
<treecell label="rdf:http://dummy/rdf#id"/>
|
|
|
|
<treecell label="rdf:http://dummy/rdf#title"/>
|
|
|
|
</treerow>
|
|
|
|
</treeitem>
|
|
|
|
</treechildren>
|
|
|
|
</template>
|
|
|
|
</tree>
|
|
|
|
|
|
|
|
<script type="application/x-javascript">
|
|
|
|
<![CDATA[
|
|
|
|
|
2009-05-21 12:35:49 -07:00
|
|
|
var tree = document.getElementById('t');
|
2009-05-12 13:07:28 -07:00
|
|
|
|
2009-05-12 17:00:53 -07:00
|
|
|
function runTest() {
|
2008-08-19 21:16:46 -07:00
|
|
|
tree.setAttribute('datasources', '441785-1.rdf');
|
2009-05-21 12:35:49 -07:00
|
|
|
tree.setAttribute('datasources', '441785-2.rdf');
|
|
|
|
|
|
|
|
setTimeout('continueTest()', 1000);
|
2008-08-19 21:16:46 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
function continueTest() {
|
2009-05-21 12:35:49 -07:00
|
|
|
if (tree.view && tree.view.rowCount > 1) {
|
2008-08-19 21:16:46 -07:00
|
|
|
//netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
|
|
|
|
try {
|
|
|
|
window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
|
|
|
.getInterface(Components.interfaces.nsIDOMWindowUtils)
|
|
|
|
.garbageCollect();
|
|
|
|
}
|
|
|
|
catch (e) { }
|
|
|
|
// Hit the bug, crash
|
|
|
|
// (not exactly the same kind of crash as 441785, but from the same cause)
|
|
|
|
tree.parentNode.removeChild(tree);
|
|
|
|
}
|
2009-05-21 12:35:49 -07:00
|
|
|
document.documentElement.className = "";
|
2008-08-19 21:16:46 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
window.addEventListener("load", runTest, false);
|
|
|
|
|
|
|
|
]]>
|
|
|
|
</script>
|
|
|
|
</window>
|