diff --git a/accessible/tests/mochitest/selectable/test_tree.xul b/accessible/tests/mochitest/selectable/test_tree.xul
index 81e08253437f..47e9c73855d3 100644
--- a/accessible/tests/mochitest/selectable/test_tree.xul
+++ b/accessible/tests/mochitest/selectable/test_tree.xul
@@ -50,7 +50,7 @@
var isTreeMultiSelectable = false;
var seltype = this.DOMNode.getAttribute("seltype");
- if (seltype != "single" && seltype != "cell" && seltype != "text")
+ if (seltype != "single")
isTreeMultiSelectable = true;
// selectAll
@@ -110,8 +110,6 @@
gQueue = new eventQueue(EVENT_REORDER);
gQueue.push(new statesChecker("tree", new nsTreeTreeView()));
gQueue.push(new statesChecker("treesingle", new nsTreeTreeView()));
- gQueue.push(new statesChecker("treecell", new nsTreeTreeView()));
- gQueue.push(new statesChecker("treetext", new nsTreeTreeView()));
gQueue.push(new statesChecker("tabletree", new nsTreeTreeView()));
gQueue.invoke(); // Will call SimpleTest.finish();
@@ -156,20 +154,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/layout/xul/tree/crashtests/399227-2.xul b/layout/xul/tree/crashtests/399227-2.xul
deleted file mode 100644
index 55665ec475b8..000000000000
--- a/layout/xul/tree/crashtests/399227-2.xul
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/layout/xul/tree/crashtests/crashtests.list b/layout/xul/tree/crashtests/crashtests.list
index a18cd9761b54..cbb96a615363 100644
--- a/layout/xul/tree/crashtests/crashtests.list
+++ b/layout/xul/tree/crashtests/crashtests.list
@@ -8,7 +8,6 @@ load 391178-1.xhtml
load 391178-2.xul
load 393665-1.xul
load 399227-1.xul
-load 399227-2.xul
load 399692-1.xhtml
load 399715-1.xhtml
load 409807-1.xul
diff --git a/toolkit/content/jar.mn b/toolkit/content/jar.mn
index 4c3ddb422fbc..08d4d66823e5 100644
--- a/toolkit/content/jar.mn
+++ b/toolkit/content/jar.mn
@@ -97,7 +97,7 @@ toolkit.jar:
content/global/bindings/timepicker.js (widgets/timepicker.js)
content/global/bindings/toolbar.xml (widgets/toolbar.xml)
content/global/bindings/toolbarbutton.xml (widgets/toolbarbutton.xml)
-* content/global/bindings/tree.xml (widgets/tree.xml)
+ content/global/bindings/tree.xml (widgets/tree.xml)
content/global/bindings/videocontrols.xml (widgets/videocontrols.xml)
* content/global/bindings/wizard.xml (widgets/wizard.xml)
content/global/elements/general.js (widgets/general.js)
diff --git a/toolkit/content/tests/chrome/chrome.ini b/toolkit/content/tests/chrome/chrome.ini
index 114293aef00b..e905d048e29c 100644
--- a/toolkit/content/tests/chrome/chrome.ini
+++ b/toolkit/content/tests/chrome/chrome.ini
@@ -186,7 +186,6 @@ skip-if = (os == 'mac' && os_version == '10.10') || (os == 'win') # Bug 1141245,
[test_tooltip_noautohide.xul]
[test_tree.xul]
[test_tree_hier.xul]
-[test_tree_hier_cell.xul]
[test_tree_single.xul]
[test_tree_view.xul]
[test_window_intrinsic_size.xul]
diff --git a/toolkit/content/tests/chrome/test_tree_hier_cell.xul b/toolkit/content/tests/chrome/test_tree_hier_cell.xul
deleted file mode 100644
index 29e92ba3b6c2..000000000000
--- a/toolkit/content/tests/chrome/test_tree_hier_cell.xul
+++ /dev/null
@@ -1,136 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/toolkit/content/tests/widgets/tree_shared.js b/toolkit/content/tests/widgets/tree_shared.js
index 96e074bafb49..6ed36cdd53fb 100644
--- a/toolkit/content/tests/widgets/tree_shared.js
+++ b/toolkit/content/tests/widgets/tree_shared.js
@@ -49,17 +49,9 @@ function testtag_tree(treeid, treerowinfoid, seltype, columnstype, testid) {
// note: the functions below should be in this order due to changes made in later tests
- // select the first column in cell selection mode so that the selection
- // functions can be tested
- if (seltype == "cell")
- tree.view.selection.currentColumn = tree.columns[0];
-
testtag_tree_columns(tree, columnInfo, testid);
testtag_tree_TreeSelection(tree, testid, multiple);
testtag_tree_TreeSelection_UI(tree, testid, multiple);
- if (seltype == "cell")
- testtag_tree_TreeSelection_UI_cell(tree, testid, rowInfo);
-
testtag_tree_TreeView(tree, testid, rowInfo);
is(tree.editable, false, "tree should not be editable");
@@ -606,8 +598,7 @@ function testtag_tree_TreeSelection_UI(tree, testid, multiple) {
selection.currentIndex = 2;
if (0) { // XXXndeakin disable these tests for now
mouseOnCell(tree, 1, tree.columns[1], "mouse on row");
- testtag_tree_TreeSelection_State(tree, testid + "mouse on row", 1, [1], 0,
- tree.selType == "cell" ? tree.columns[1] : null);
+ testtag_tree_TreeSelection_State(tree, testid + "mouse on row", 1, [1], 0, null);
}
// restore the scroll position to the start of the page
@@ -637,23 +628,6 @@ function testtag_tree_UI_editing(tree, testid, rowInfo) {
if (tree.view.isContainer(row))
wasOpen = tree.view.isContainerOpen(row);
- // Test whether a keystroke can enter text entry, and another can exit.
- if (tree.selType == "cell") {
- tree.stopEditing(false);
- ok(!tree.editingColumn, "Should not be editing tree cell now");
- tree.view.selection.currentColumn = ecolumn;
- tree.currentIndex = rowIndex;
-
- const isMac = (navigator.platform.includes("Mac"));
- const StartEditingKey = isMac ? "RETURN" : "F2";
- sendKey(StartEditingKey);
- is(tree.editingColumn, ecolumn, "Should be editing tree cell now");
- sendKey("ESCAPE");
- ok(!tree.editingColumn, "Should not be editing tree cell now");
- is(tree.currentIndex, rowIndex, "Current index should not have changed");
- is(tree.view.selection.currentColumn, ecolumn, "Current column should not have changed");
- }
-
mouseDblClickOnCell(tree, rowIndex, ecolumn, testid + "edit on double click");
is(tree.editingColumn, ecolumn, testid + "editing column");
is(tree.editingRow, rowIndex, testid + "editing row");
@@ -1044,18 +1018,13 @@ function testtag_tree_TreeView_rows_sort(tree, testid, rowInfo) {
// checks if the current and selected rows are correct
// current is the index of the current row
// selected is an array of the indicies of the selected rows
-// column is the selected column
// viewidx is the row that should be visible at the top of the tree
-function testtag_tree_TreeSelection_State(tree, testid, current, selected, viewidx, column) {
+function testtag_tree_TreeSelection_State(tree, testid, current, selected, viewidx) {
var selection = tree.view.selection;
- if (!column)
- column = (tree.selType == "cell") ? tree.columns[0] : null;
-
is(selection.count, selected.length, testid + " count");
is(tree.currentIndex, current, testid + " currentIndex");
is(selection.currentIndex, current, testid + " TreeSelection currentIndex");
- is(selection.currentColumn, column, testid + " currentColumn");
if (viewidx !== null && viewidx !== undefined)
is(tree.treeBoxObject.getFirstVisibleRow(), viewidx, testid + " first visible row");
diff --git a/toolkit/content/widgets/tree.xml b/toolkit/content/widgets/tree.xml
index eccede1eb3af..acd99550e5b3 100644
--- a/toolkit/content/widgets/tree.xml
+++ b/toolkit/content/widgets/tree.xml
@@ -256,17 +256,6 @@
]]>
-
-
-
-
-
-
@@ -444,18 +433,6 @@
c = edge;
}
- var cellSelType = this._cellSelType;
- if (cellSelType) {
- var column = this.view.selection.currentColumn;
- if (!column)
- return;
-
- while ((offset > 0 ? c <= edge : c >= edge) && !this.view.isSelectable(c, column))
- c += offset;
- if (offset > 0 ? c > edge : c < edge)
- return;
- }
-
if (!this._isAccelPressed(event))
this.view.selection.timedSelect(c, this._selectDelay);
else // Ctrl+Up/Down moves the anchor without selecting
@@ -670,16 +647,6 @@
return true;
}
- if (/Mac/.test(navigator.platform)) {
- // See if we can edit the cell.
- var row = this.currentIndex;
- if (this._cellSelType) {
- var column = this.view.selection.currentColumn;
- var startedEditing = this.startEditing(row, column);
- if (startedEditing)
- return true;
- }
- }
return this.changeOpenState(this.currentIndex);
]]>