Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 <?xml version="1.0"?>
3 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
5 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="reftest-wait" onload="setTimeout(boom, 30);">
8 <script>
9 function boom()
10 {
11 var tree = document.getElementById("thetree");
12 var selection = tree.view.selection;
13 var treecolumn0 = tree.columns[0];
14 var treecolumn1 = tree.columns[1];
16 selection.select(0);
17 selection.currentColumn = treecolumn0;
18 tree.parentNode.removeChild(tree);
20 // This is expected to throw an error (it used to crash).
21 try {
22 selection.currentColumn = treecolumn1;
23 }
24 catch (ex) {}
26 document.documentElement.removeAttribute("class");
27 }
28 </script>
30 <tree flex="1" id="thetree" seltype="cell">
31 <treecols>
32 <treecol label="Name"/>
33 <treecol label="Test"/>
34 </treecols>
35 <treechildren id="TC">
36 <treeitem id="TI1">
37 <treerow>
38 <treecell label="First treecell"/>
39 <treecell label="Second treecell"/>
40 </treerow>
41 </treeitem>
42 <treeitem id="TI2">
43 <treerow>
44 <treecell label="Third treecell"/>
45 <treecell label="Fourth treecell"/>
46 </treerow>
47 </treeitem>
48 </treechildren>
49 </tree>
50 </window>