[Webkit-unassigned] [Bug 131294] [AX][GTK] No new lines in some AX tests output

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 9 03:47:05 PDT 2014


--- Comment #12 from Mario Sanchez Prada <mario at webkit.org>  2014-04-09 03:47:24 PST ---
The problem is caused by http://trac.webkit.org/changeset/166194 because, as per my own recommendation, the call to updateRoleAfterChildrenCreation() is happening now in AccessibilityObject::updateBackingStore(), which unveiled a problem in the way we determined which ATK interfaces to implement in the ATK wrapper.

Because of this issue, all these tests were printing a lot of text when called the stringValue() function of AccessibilityUIElement through WKTR, since the ATK object for the WebArea would be recognized as implementing AtkText. Therefore, calling atk_text_get_text() over it would return a textual representation of the whole web page (internally using WebCore's TextIterator), which resulted in all that text being shown in the output.

And of course, the javascript code in buildAccessibilityTree() would not keep digging into the subtree for the WebArea because, due to the WebArea already returning a lot of text through the AtkText interface, and due to that text already including the 'End of test' string (used as condition to stop digging more in the tree).

So, we need to make sure we never, ever, implement AtkText for objects with the WebArea role. Patch coming soon

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list