[webkit-dev] How does WebKit accessibility code tell VoiceOver that a page has finished loading?

Frédéric WANG fred.wang at free.fr
Thu Oct 1 16:10:18 PDT 2015


Hi,

When Safari has finished loading a page, VoiceOver plays an ascending
three tone sound effect, selects the web document and starts reading the
page. I'm trying to reproduce this effect on Firefox for Mac (see
https://bugzilla.mozilla.org/show_bug.cgi?id=718637).

There is an old message on Apple mailing list indicating that the
application listening the notification must actually play the sound.
However, that does not seem to reply to the question since Gecko is the
sender of the notification, not the receiver:
http://prod.lists.apple.com/archives/accessibility-dev/2012/Apr/msg00007.html

So instead I'm asking on this mailing list, since Gecko must probably
behave the same as WebKit. Reading WebKit source code, I found various
potential candidate notifications to send to VoiceOver:

@"AXLoadComplete"
@"AXLayoutComplete"
NSAccessibilityFocusedUIElementChangedNotification

I tried making Gecko call NSAccessibilityPostNotification with these
three events when the page is loaded and rendered but that does not seem
to help. The best I obtained is that the focus is now put on the web
document once it is loaded.

Any ideas about how WebKit accessibility code works here?

Thanks,

Frédéric Wang


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.webkit.org/pipermail/webkit-dev/attachments/20151002/2e65ce0a/attachment.sig>


More information about the webkit-dev mailing list