[webkit-reviews] review canceled: [Bug 92477] REGRESSION (r123767): platform/gtk/accessibility/object-with-title.html failing on GTK : [Attachment 154981] Patch proposal
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jul 28 08:24:22 PDT 2012
Mario Sanchez Prada <msanchez at igalia.com> has canceled Mario Sanchez Prada
<msanchez at igalia.com>'s request for review:
Bug 92477: REGRESSION (r123767):
platform/gtk/accessibility/object-with-title.html failing on GTK
https://bugs.webkit.org/show_bug.cgi?id=92477
Attachment 154981: Patch proposal
https://bugs.webkit.org/attachment.cgi?id=154981&action=review
------- Additional Comments from Mario Sanchez Prada <msanchez at igalia.com>
(In reply to comment #3)
> (From update of attachment 154981 [details])
> View in context:
https://bugs.webkit.org/attachment.cgi?id=154981&action=review
>
> > Source/WebCore/accessibility/gtk/AccessibilityObjectAtk.cpp:77
> > + if (!accessibilityDescription().isEmpty())
>
> i might change this to
>
> if (!accessibilityDescription().isEmpty() || !title.isEmpty())
>
> as the "accessible" name of an object is split between these two concepts,
which are modeled on the Mac API
> where title is what you get visually on the screen if available, and
axDescription is what you get when the
> description is not really visible (think alt tag on image)
Good point.
Actually, there was another issue with that solution (which was causing some
tests to fail) and it's that calling to title() / accessibilityDescription()
from this function will cause infinite recursion since accessibilityIsIgnored()
will be called again at some point after calling those functions.
So, and considering that helpText() is something that seems to be used only on
the Mac, I made a change directly in
AccessibilityRenderObject::accessibilityIsIgnored(), so we decide not to ignore
an object if helpText is not empty when on the Mac, and when (title ||
accessibilityDescription) is not empty in other platforms.
This seems to fix the issue indeed, while not causing any regression, at least
in the GTK port.
More information about the webkit-reviews
mailing list