summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webaccessibility.cc
diff options
context:
space:
mode:
authordtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-08 21:21:22 +0000
committerdtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-08 21:21:22 +0000
commit4edc5fcf68d31dcb0b67d41957278ed023e62b97 (patch)
tree38a8f3dd0dcdf6f5f60f0d8177dec92a17ada508 /webkit/glue/webaccessibility.cc
parent61c269dbc369015d117935e1dbbf25f7d5455733 (diff)
downloadchromium_src-4edc5fcf68d31dcb0b67d41957278ed023e62b97.zip
chromium_src-4edc5fcf68d31dcb0b67d41957278ed023e62b97.tar.gz
chromium_src-4edc5fcf68d31dcb0b67d41957278ed023e62b97.tar.bz2
Fix Jaws not reading the value of textfields .
BUG=87799 TEST=manually JFW 12 and interactive UI tests. Review URL: http://codereview.chromium.org/7290010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91897 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webaccessibility.cc')
-rw-r--r--webkit/glue/webaccessibility.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/glue/webaccessibility.cc b/webkit/glue/webaccessibility.cc
index 26674ff..73f3140 100644
--- a/webkit/glue/webaccessibility.cc
+++ b/webkit/glue/webaccessibility.cc
@@ -354,6 +354,9 @@ void WebAccessibility::Init(const WebKit::WebAccessibilityObject& src,
element.to<WebKit::WebFormControlElement>();
if (form_element.formControlType() == ASCIIToUTF16("text") ||
form_element.formControlType() == ASCIIToUTF16("textarea")) {
+ // Jaws gets confused by children of text fields, so we ignore them.
+ include_children = false;
+
attributes[ATTR_TEXT_SEL_START] = base::IntToString16(
src.selectionStart());
attributes[ATTR_TEXT_SEL_END] = base::IntToString16(src.selectionEnd());