Index: content/renderer/accessibility/blink_ax_tree_source.cc |
diff --git a/content/renderer/accessibility/blink_ax_tree_source.cc b/content/renderer/accessibility/blink_ax_tree_source.cc |
index 994550f32e8ef5396e158b04638d1fb2bfc3cfd4..e382963f5f07ed3818f0ad328c2e429d395184f5 100644 |
--- a/content/renderer/accessibility/blink_ax_tree_source.cc |
+++ b/content/renderer/accessibility/blink_ax_tree_source.cc |
@@ -346,6 +346,12 @@ void BlinkAXTreeSource::SerializeNode(blink::WebAXObject src, |
line_breaks.push_back(src_line_breaks[i]); |
dst->AddIntListAttribute(ui::AX_ATTR_LINE_BREAKS, line_breaks); |
} |
+ |
+ if (dst->role == ui::AX_ROLE_TEXT_FIELD && |
+ src.textInputType().length()) { |
+ dst->AddStringAttribute(ui::AX_ATTR_TEXT_INPUT_TYPE, |
+ UTF16ToUTF8(src.textInputType())); |
+ } |
} |
// ARIA role. |