Commit e26f4ff3 authored by Joanmarie Diggs's avatar Joanmarie Diggs

Resume using AT-SPI2 cache for accessible parents in Chromium

We had to stop using the AT-SPI2 cache for parents because Chromium
was failing to emit parent-changed events causing us to not see
parts of the page and/or getting stuck. This happened, for example,
on the Github issue page with the search field.

Recently I fixed this problem in Chromium itself. Therefore we can
resume using the AT-SPI2 cache for parents.
parent 0dc61e1c
......@@ -47,16 +47,6 @@ class Script(web.Script):
self.presentIfInactive = False
# Chromium doesn't always emit parent-change events. While we don't listen
# for those ourselves, those events tell AT-SPI2 to update the cached parent.
# If we cache the parent, then we can wind up getting stuck. Example page is
# the Github issue page when the issue search field gets focus.
app.setCacheMask(pyatspi.cache.DEFAULT ^
pyatspi.cache.CHILDREN ^
pyatspi.cache.PARENT ^
pyatspi.cache.NAME ^
pyatspi.cache.DESCRIPTION)
def getBrailleGenerator(self):
"""Returns the braille generator for this script."""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment