From ae20bb42034f07ceb3ced912eab3e0dbc106e3f7 Mon Sep 17 00:00:00 2001 From: Marco Zehe Date: Mon, 2 Feb 2009 10:38:53 +0100 Subject: [PATCH] bug 469367 - Add ARIA semantics to those search widget types that don't have a Search button, r=dao, r=surkov --- accessible/tests/mochitest/test_textboxes.xul | 38 +++++++++++++++++++ .../places/content/bookmarksPanel.xul | 1 + .../places/content/history-panel.xul | 1 + browser/components/places/content/places.xul | 1 + .../components/preferences/applications.xul | 1 + browser/components/preferences/cookies.xul | 4 +- toolkit/components/help/content/help.xul | 1 + .../passwordmgr/content/passwordManager.xul | 1 + .../components/viewconfig/content/config.xul | 4 +- toolkit/content/widgets/textbox.xml | 21 ++++++++-- .../mozapps/downloads/content/downloads.xul | 1 + 11 files changed, 69 insertions(+), 5 deletions(-) diff --git a/accessible/tests/mochitest/test_textboxes.xul b/accessible/tests/mochitest/test_textboxes.xul index d18c6226198..7fd2b5f56ce 100644 --- a/accessible/tests/mochitest/test_textboxes.xul +++ b/accessible/tests/mochitest/test_textboxes.xul @@ -149,6 +149,36 @@ "activate", // ActionName "Activate"); // ActionDescription + ////////////////////////////////////////////////////////////////////////// + // Search textbox without search button, searches as you type and filters + // a separate control. + testThis("search-box", // ID + "Search History:", // name + "", // value + "", // description + ROLE_ENTRY, // role + (STATE_FOCUSABLE), // state + (EXT_STATE_SUPPORTS_AUTOCOMPLETION), // extState + (0), // absentState + 1, // numActions + "activate", // ActionName + "Activate"); // ActionDescription + + ////////////////////////////////////////////////////////////////////////// + // Search textbox with search button, does not support autoCompletion. + testThis("searchfield", // ID + "Search all add-ons", // name + "", // value + "", // description + ROLE_ENTRY, // role + (STATE_FOCUSABLE), // state + (0), // extState + (0), // absentState + 1, // numActions + "activate", // ActionName + "Activate"); // ActionDescription + testStates("searchfield", 0, 0, 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION); + SimpleTest.finish(); } @@ -208,5 +238,13 @@ + + + diff --git a/browser/components/places/content/bookmarksPanel.xul b/browser/components/places/content/bookmarksPanel.xul index 068751bbb8a..0831ac8c0db 100644 --- a/browser/components/places/content/bookmarksPanel.xul +++ b/browser/components/places/content/bookmarksPanel.xul @@ -64,6 +64,7 @@ diff --git a/browser/components/places/content/history-panel.xul b/browser/components/places/content/history-panel.xul index bc21c2286e5..e9345cca7a2 100644 --- a/browser/components/places/content/history-panel.xul +++ b/browser/components/places/content/history-panel.xul @@ -87,6 +87,7 @@