RESOLVED FIXED 229032
[GTK] Simplify TestWebKitAccessibility
https://bugs.webkit.org/show_bug.cgi?id=229032
Summary [GTK] Simplify TestWebKitAccessibility
Carlos Garcia Campos
Reported 2021-08-12 04:04:22 PDT
We don't really need to have a different process to test a11y. We can remove AccessibilityTestServer and use the same test executable. That way we don't need to spawn a process and use DBus for the communication.
Attachments
Patch (14.02 KB, patch)
2021-08-12 04:09 PDT, Carlos Garcia Campos
no flags
Patch (13.69 KB, patch)
2021-08-12 04:15 PDT, Carlos Garcia Campos
mcatanzaro: review+
Carlos Garcia Campos
Comment 1 2021-08-12 04:09:00 PDT
Carlos Garcia Campos
Comment 2 2021-08-12 04:15:40 PDT
Michael Catanzaro
Comment 3 2021-08-12 06:26:38 PDT
Comment on attachment 435414 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435414&action=review Heh, nice! > Tools/TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp:41 > + // We can get warnings from atspi when trying to connect to applications. > + Test::removeLogFatalFlag(G_LOG_LEVEL_WARNING); > int childCount = atspi_accessible_get_child_count(desktop.get(), nullptr); > + Test::addLogFatalFlag(G_LOG_LEVEL_WARNING); What sort of warnings? Certainly not failing the test is good to do, but they probably pollute the test log, don't they?
Carlos Garcia Campos
Comment 4 2021-08-12 06:48:33 PDT
(In reply to Michael Catanzaro from comment #3) > Comment on attachment 435414 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=435414&action=review > > Heh, nice! > > > Tools/TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp:41 > > + // We can get warnings from atspi when trying to connect to applications. > > + Test::removeLogFatalFlag(G_LOG_LEVEL_WARNING); > > int childCount = atspi_accessible_get_child_count(desktop.get(), nullptr); > > + Test::addLogFatalFlag(G_LOG_LEVEL_WARNING); > > What sort of warnings? > (TestWebKitAccessibility:23612): dbind-WARNING **: 09:35:59.141: AT-SPI: Unable to open bus connection: Failed to connect to socket /run/user/1001/at-spi2-12MT70/socket: No such file or directory > Certainly not failing the test is good to do, but they probably pollute the > test log, don't they? It happens once, it seems related to a specific app, it also happens when starting accerciser.
Carlos Garcia Campos
Comment 5 2021-08-12 06:53:54 PDT
Radar WebKit Bug Importer
Comment 6 2021-08-12 06:54:17 PDT
Carlos Garcia Campos
Comment 7 2021-08-13 02:18:39 PDT
(In reply to Carlos Garcia Campos from comment #4) > (In reply to Michael Catanzaro from comment #3) > > Comment on attachment 435414 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=435414&action=review > > > > Heh, nice! > > > > > Tools/TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp:41 > > > + // We can get warnings from atspi when trying to connect to applications. > > > + Test::removeLogFatalFlag(G_LOG_LEVEL_WARNING); > > > int childCount = atspi_accessible_get_child_count(desktop.get(), nullptr); > > > + Test::addLogFatalFlag(G_LOG_LEVEL_WARNING); > > > > What sort of warnings? > > > > (TestWebKitAccessibility:23612): dbind-WARNING **: 09:35:59.141: AT-SPI: > Unable to open bus connection: Failed to connect to socket > /run/user/1001/at-spi2-12MT70/socket: No such file or directory > > > Certainly not failing the test is good to do, but they probably pollute the > > test log, don't they? > > It happens once, it seems related to a specific app, it also happens when > starting accerciser. It turned out to be evolution that is replying to atspi GetApplicationBusAddress message with an invalid address. Any idea Milan?
Carlos Garcia Campos
Comment 8 2021-08-13 04:03:29 PDT
(In reply to Carlos Garcia Campos from comment #7) > (In reply to Carlos Garcia Campos from comment #4) > > (In reply to Michael Catanzaro from comment #3) > > > Comment on attachment 435414 [details] > > > Patch > > > > > > View in context: > > > https://bugs.webkit.org/attachment.cgi?id=435414&action=review > > > > > > Heh, nice! > > > > > > > Tools/TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp:41 > > > > + // We can get warnings from atspi when trying to connect to applications. > > > > + Test::removeLogFatalFlag(G_LOG_LEVEL_WARNING); > > > > int childCount = atspi_accessible_get_child_count(desktop.get(), nullptr); > > > > + Test::addLogFatalFlag(G_LOG_LEVEL_WARNING); > > > > > > What sort of warnings? > > > > > > > (TestWebKitAccessibility:23612): dbind-WARNING **: 09:35:59.141: AT-SPI: > > Unable to open bus connection: Failed to connect to socket > > /run/user/1001/at-spi2-12MT70/socket: No such file or directory > > > > > Certainly not failing the test is good to do, but they probably pollute the > > > test log, don't they? > > > > It happens once, it seems related to a specific app, it also happens when > > starting accerciser. > > It turned out to be evolution that is replying to atspi > GetApplicationBusAddress message with an invalid address. Any idea Milan? It happens with devhelp too...
Michael Catanzaro
Comment 9 2021-08-13 12:36:32 PDT
(In reply to Carlos Garcia Campos from comment #8) > It happens with devhelp too... Sounds like either GTK or WebKit itself is to blame then, right? I doubt devhelp has any a11y-related code at all.
Carlos Garcia Campos
Comment 10 2021-08-20 03:11:16 PDT
(In reply to Michael Catanzaro from comment #9) > (In reply to Carlos Garcia Campos from comment #8) > > It happens with devhelp too... > > Sounds like either GTK or WebKit itself is to blame then, right? I doubt > devhelp has any a11y-related code at all. I've found the common point, the WebKit bubblewrap sandbox. For some reason atk bridge is creating a dbus server for a socket path that is never created. I don't know what fails exactly, but I would say dbus_server_listen() should fail instead of returning a server for a socket path that doesn't actually exist.
Carlos Garcia Campos
Comment 11 2021-08-20 03:23:54 PDT
(In reply to Carlos Garcia Campos from comment #10) > (In reply to Michael Catanzaro from comment #9) > > (In reply to Carlos Garcia Campos from comment #8) > > > It happens with devhelp too... > > > > Sounds like either GTK or WebKit itself is to blame then, right? I doubt > > devhelp has any a11y-related code at all. > > I've found the common point, the WebKit bubblewrap sandbox. For some reason > atk bridge is creating a dbus server for a socket path that is never > created. I don't know what fails exactly, but I would say > dbus_server_listen() should fail instead of returning a server for a socket > path that doesn't actually exist. It seems the path exists right after the server is created, that's why it doesn't fail, but it's later removed.
Note You need to log in before you can comment on or make changes to this bug.