From 9b742bfa2d400d5a3bebae909642153f20d9abf3 Mon Sep 17 00:00:00 2001 From: Sandor Molnar Date: Wed, 29 Sep 2021 06:37:56 +0300 Subject: [PATCH] Backed out changeset c8bcdcdc5fd7 (bug 1730175) for causing mochitest failures in test_datetime. CLOSED TREE --- accessible/tests/mochitest/value/a11y.ini | 1 - .../tests/mochitest/value/test_datetime.html | 74 ------------------- toolkit/content/widgets/datetimebox.js | 2 - 3 files changed, 77 deletions(-) delete mode 100644 accessible/tests/mochitest/value/test_datetime.html diff --git a/accessible/tests/mochitest/value/a11y.ini b/accessible/tests/mochitest/value/a11y.ini index 8bd39474a8da..7a4bf9bed246 100644 --- a/accessible/tests/mochitest/value/a11y.ini +++ b/accessible/tests/mochitest/value/a11y.ini @@ -3,7 +3,6 @@ support-files = !/accessible/tests/mochitest/*.js [test_ariavalue.html] -[test_datetime.html] [test_general.html] [test_number.html] [test_progress.html] diff --git a/accessible/tests/mochitest/value/test_datetime.html b/accessible/tests/mochitest/value/test_datetime.html deleted file mode 100644 index d695869d6092..000000000000 --- a/accessible/tests/mochitest/value/test_datetime.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - nsIAccessible value testing for datetime-local input element - - - - - - - - - - - - - - diff --git a/toolkit/content/widgets/datetimebox.js b/toolkit/content/widgets/datetimebox.js index b43a98f492b2..e24addea2bc2 100644 --- a/toolkit/content/widgets/datetimebox.js +++ b/toolkit/content/widgets/datetimebox.js @@ -345,7 +345,6 @@ this.DateTimeBoxWidget = class { field.classList.add("datetime-edit-field"); field.textContent = aPlaceHolder; field.placeholder = aPlaceHolder; - field.setAttribute("aria-valuetext", ""); field.tabIndex = this.mInputElement.tabIndex; field.setAttribute("readonly", this.mInputElement.readOnly); @@ -491,7 +490,6 @@ this.DateTimeBoxWidget = class { clearFieldValue(aField) { aField.textContent = aField.placeholder; aField.setAttribute("value", ""); - aField.setAttribute("aria-valuetext", ""); if (aField.classList.contains("numeric")) { aField.setAttribute("typeBuffer", ""); }