(This is a spin-off bug from bug #25526 comment #15)
Steps to reproduce:
1. Launch Epiphany and Accerciser.
2. Having enabled Accerciser's event monitor to examine object:text-selection-changed events, use Shift+Right to select forward by character.
Expected results: The source of the event would be the accessible object in which text was just selected.
Actual results: The source of the event is the accessible object in which text selection began -- which is not necessarily the object in which the most recent text selection took place.
For instance, given:
This <a href="foo.html">is</a> a test.
If I start selection somewhere in "This" and Shift+Right through to "test," I
see a text-selection-changed event for each press of Shift+Right, but all of
them are for the accessible which contains "This" rather than the link and
Created attachment 32171 [details]
Get the focused node from the selection end.
Comment on attachment 32171 [details]
Landed as r45534.
Verifying. Thanks Xan!