[Webkit-unassigned] [Bug 214068] New: REGRESSION (r264037) [GTK][WPE] accessibility/textarea-selected-text-range.html is failing for collapsed ranges

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 7 19:25:04 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=214068

            Bug ID: 214068
           Summary: REGRESSION (r264037) [GTK][WPE]
                    accessibility/textarea-selected-text-range.html is
                    failing for collapsed ranges
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: lmoura at igalia.com
                CC: webkit-bug-importer at group.apple.com

r264037 changed the behavior of AccessibilityRenderObject::setSelectedVisiblePositionRange for the cases where the selection range is 0.

This made accessibility/textarea-selected-text-range.html to fail, returning (0,0) from selectedTextRange when the length given to setSelectedTextRange is zero.

In AccessibilityUIElementAtk.cpp's AccessibilityUIElement::setSelectedTextRange(unsigned location, unsigned length), there is this snippet which might be related:

  1888     if (!length)
     1         return atk_text_set_caret_offset(ATK_TEXT(m_element.get()), location);
     2
     3     return atk_text_set_selection(ATK_TEXT(m_element.get()), 0, location, location + length);

Link to the results history: https://results.webkit.org/?suite=layout-tests&test=accessibility%2Ftextarea-selected-text-range.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200708/e926e347/attachment.htm>


More information about the webkit-unassigned mailing list