diff --git a/mozilla/toolkit/content/tests/widgets/Makefile.in b/mozilla/toolkit/content/tests/widgets/Makefile.in
index e4833270881..c9ef667e254 100644
--- a/mozilla/toolkit/content/tests/widgets/Makefile.in
+++ b/mozilla/toolkit/content/tests/widgets/Makefile.in
@@ -68,8 +68,6 @@ _TEST_FILES = test_bug360220.xul \
test_datepicker.xul \
test_timepicker.xul \
xul_selectcontrol.js \
- test_hiddenitems.xul \
- test_hiddenpaging.xul \
$(NULL)
ifeq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
diff --git a/mozilla/toolkit/content/tests/widgets/test_hiddenitems.xul b/mozilla/toolkit/content/tests/widgets/test_hiddenitems.xul
deleted file mode 100644
index 126b1b2ecb9..00000000000
--- a/mozilla/toolkit/content/tests/widgets/test_hiddenitems.xul
+++ /dev/null
@@ -1,89 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- Mozilla Bug 317422
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mozilla/toolkit/content/tests/widgets/test_hiddenpaging.xul b/mozilla/toolkit/content/tests/widgets/test_hiddenpaging.xul
deleted file mode 100644
index 1994d7e3121..00000000000
--- a/mozilla/toolkit/content/tests/widgets/test_hiddenpaging.xul
+++ /dev/null
@@ -1,104 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- Mozilla Bug 317422
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mozilla/toolkit/content/widgets/listbox.xml b/mozilla/toolkit/content/widgets/listbox.xml
index 36b26aaf400..199252f2635 100644
--- a/mozilla/toolkit/content/widgets/listbox.xml
+++ b/mozilla/toolkit/content/widgets/listbox.xml
@@ -99,9 +99,8 @@
insertItemAt(aIndex, aLabel, aValue)
/** Scroll up/down one page
- * @param aDirection - specifies scrolling direction, should be either -1 or 1
- * @return the number of elements the selection scrolled
- */
+ * @param aDirection - specifies scrolling direction, should be either -1
+ or 1 */
scrollOnePage(aDirection)
/** Fire "select" event */
@@ -335,15 +334,12 @@
// Don't use clearSelection() because it causes a lot of noise
// with respect to selection removed notifications used by the
// accessibility API support.
- var userSelecting = this._userSelecting;
- this._userSelecting = false; // that's US automatically unselecting
for (; currentItem; currentItem = this.getNextItem(currentItem, 1))
this.removeItemFromSelection(currentItem);
for (currentItem = this.getItemAtIndex(0); currentItem != aStartItem;
currentItem = this.getNextItem(currentItem, 1))
this.removeItemFromSelection(currentItem);
- this._userSelecting = userSelecting;
this._suppressOnSelect = suppressSelect;
@@ -482,13 +478,8 @@
newIndex = numItems - 1;
var newItem = this.getItemAtIndex(newIndex);
- // make sure that the item is actually visible/selectable
- if (this._userSelecting && newItem && !this._canUserSelect(newItem))
- newItem =
- aOffset > 0 ? this.getNextItem(newItem, 1) || this.getPreviousItem(newItem, 1) :
- this.getPreviousItem(newItem, 1) || this.getNextItem(newItem, 1);
if (newItem) {
- this.ensureIndexIsVisible(this.getIndexOfItem(newItem));
+ this.ensureIndexIsVisible(newIndex);
if (aIsSelectingRange)
this.selectItemRange(null, newItem);
else if (aIsSelecting)
@@ -509,8 +500,7 @@
while (aStartItem) {
aStartItem = aStartItem.nextSibling;
if (aStartItem && aStartItem instanceof
- Components.interfaces.nsIDOMXULSelectControlItemElement &&
- (!this._userSelecting || this._canUserSelect(aStartItem))) {
+ Components.interfaces.nsIDOMXULSelectControlItemElement) {
--aDelta;
if (aDelta == 0)
return aStartItem;
@@ -528,8 +518,7 @@
while (aStartItem) {
aStartItem = aStartItem.previousSibling;
if (aStartItem && aStartItem instanceof
- Components.interfaces.nsIDOMXULSelectControlItemElement &&
- (!this._userSelecting || this._canUserSelect(aStartItem))) {
+ Components.interfaces.nsIDOMXULSelectControlItemElement) {
--aDelta;
if (aDelta == 0)
return aStartItem;
@@ -540,28 +529,6 @@