Bug 240522 - [GTK] AX: Accessibility events missing for browser tab's contents when nothing is listening when page loads
Summary: [GTK] AX: Accessibility events missing for browser tab's contents when nothin...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All Linux
: P2 Normal
Assignee: Georges Basile Stavracas Neto
URL:
Keywords: InRadar
: 273944 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-05-17 09:10 PDT by Joanmarie Diggs
Modified: 2024-07-09 05:42 PDT (History)
6 users (show)

See Also:


Attachments
accessible-event listener (257 bytes, text/x-python)
2022-05-17 09:10 PDT, Joanmarie Diggs
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joanmarie Diggs 2022-05-17 09:10:03 PDT
Created attachment 459502 [details]
accessible-event listener

Steps to reproduce:
1. Launch Epiphany using WebKitGtk 2.36 (Gtk 3).
2. Load a page (I'm using https://en.wikipedia.org/wiki/Main_Page)
3. Launch the attached pyatspi accessible-event listener in a terminal
4. Tab among the focusable elements on the loaded page

Expected results: focus events would by logged in the terminal.
Actual results: focus events are not logged in the terminal.

Notes:
* If you swap steps 2 and 3 above, the problem doesn't occur.
* If you create a new tab and load the same page while the listener is still running, the problem doesn't occur.
* If you reload the page of the initial tab, events are still missing.
* If you follow links in the page of the initial tab (i.e. causing new pages to be loaded in that same tab), events are still missing.
Comment 1 Radar WebKit Bug Importer 2022-05-17 09:10:13 PDT
<rdar://problem/93428704>
Comment 2 Joanmarie Diggs 2022-05-17 09:51:44 PDT
(In reply to Joanmarie Diggs from comment #0)

> * If you swap steps 2 and 3 above, the problem doesn't occur.

Edit: It doesn't occur for the event(s) originally being listened to.

Example: Launching a new listener that listens not only for focus events, but also for caret-moved events. Only focus events will be emitted by that original page tab's document, because at the time that page tab's content was loaded, caret-moved events were not being listened to.
Comment 3 Georges Basile Stavracas Neto 2024-05-24 04:52:31 PDT
*** Bug 273944 has been marked as a duplicate of this bug. ***
Comment 4 Georges Basile Stavracas Neto 2024-05-24 07:40:32 PDT
Pull request: https://github.com/WebKit/WebKit/pull/29052
Comment 5 EWS 2024-07-09 05:42:40 PDT
Committed 280770@main (e949df8b32a3): <https://commits.webkit.org/280770@main>

Reviewed commits have been landed. Closing PR #29052 and removing active labels.