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

[Reg 5.15/6.5.6 -> 6.5.7] Accessibility elements of QWebEngineView contents are no longer exposed

    XMLWordPrintable

Details

    Description

      This problem seems to be fixed as of Qt 6.8.2, but still affects Qt 6.5.8. If would be good to get this fixed in 6.5 LTS.

       

      Code

      #include <QApplication>
      #include <QWebEngineView>
      
      int main(int argc, char* argv[])
      {
          QApplication app(argc, argv);
      
          QWebEngineView win;
          win.setUrl(QUrl("https://contribute.qt-project.org/quips"));
      
          win.setWindowTitle(QStringLiteral("UIA Test: ") + QT_VERSION_STR);
          win.resize(800, 600);
          win.show();
      
          return app.exec();
      };
      

       

      Steps to reproduce

      1. Open Accessibility Insights for Windows (https://accessibilityinsights.io/). On the "Live Inspect" page, choose to inspect/select "Element"
      2. Build and run the code above, and give focus to the QWebEngineView window
      3. Slowly hover your mouse cursor over the window's title bar, followed by the "Minimize", "Maximize", and "Close" buttons
      4. Slowly hover your mouse cursor over various buttons, icons, links, and texts inside the web page itself

       

      Note: Accessibility Insights is Microsoft's recommended replacement for Visual UI Automation Verify, according to https://learn.microsoft.com/en-us/windows/win32/winauto/ui-automation-verify

       

      Outcomes
      As the mouse cursor hovers over each element...

      • [Step #3][All Qt versions] A bounding box appears over each element and Accessibility Insights shows information about each element
      • [Step #4][Qt 5.15.18 and 6.8.2] Same as above
      • [Step #4][Qt 6.5.8] Nothing happens

      Attachments

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

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            skoh-qt Sze Howe Koh
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes