Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81539

Accessibility focus is not updated in view if browser is started before the screen reader

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.14.2, 5.15.0 Beta2
    • 5.12.6, 5.14.0
    • WebEngine
    • None
    • macOS, Windows
    • 171bdc9f0e9a563b0d70643637d0b6a8e5661d17 (qt/qtwebengine/5.14)

    Description

      Steps:

      1. Start minimal browser and load https://www.google.com
      2. Blink focuses the input field but doesn't notify about it because screen reader is not running
      3. Start screen reader
      4. Window has the accessibility focus
      5. Click on the input filed
      6. Blink doesn't update accessibility focus because the input field was already focused on the web page

      Words in the input field is not read by the screen reader. Removing the focus (click outside of the input field) then clicking on the input field will update the accessibility focus and makes the screen reader work.

      The screen reader queries the focus child of the window when start. Thus, if the view has the active focus the corresponding QAccessibleInterface::focusChild() call should return the focused accessible element on the web page. focusChild() is supposed to be fixed by https://bugreports.qt.io/browse/QTBUG-78284
      By this fix the input field should be focused without clicking on it when the screen reader started and view has the active focus.

      If the view does not have the active focus, the accessibility focus should be updated when the view gets it. QWidget::setFocus() does this for widget. Quick needs to be fixed.

      Linux seems to be not affected by this because accessibility is always turned off or on by the QTWEBENGINE_ENABLE_LINUX_ACCESSIBILITY macro and AtSpiAdaptro doesn't call QAccessibleInterface::focusChild()

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              pvarga Peter Varga
              pvarga Peter Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes