GNOME Bugzilla – Bug 618827
The generatorCache is not getting dumped when using Gecko's caret or structural navigation due to lack of AT-SPI events
Last modified: 2010-09-20 10:52:53 UTC
Steps to reproduce: 1. In a message received in Thunderbird or a web page in Firefox, move to one line within a paragraph and perform a where Am I. 2. Move to another line in that same paragraph and repeat the where Am I. Expected results: The line at the caret would be read each time Actual results: In step 2, the line from step 1 is read. This doesn't seem to occur when the object is different; only when it's a different line in the same text object.
Aha. Turns out this only happens when Gecko is controlling the caret. When Gecko is controlling the caret and we're in the same object, we don't get any events (caret-moved, focus, etc.). The thing that clears out the generatorCache is script.py's processObjectEvent. No AT-SPI events means we don't clear out the cache. I should have a fix for this issue shortly.
Created attachment 161198 [details] [review] Fix One line, very safe fix: Clear self.generatorCache in the Gecko script's consumesKeyboardEvent(). Committed to both the gnome-2-30 branch and master.
FWIW in comment 1: I mean when Orca is controlling the caret in the Gecko script. Anyhoo, the fix is right. :-)