Issue metadata
Sign in to add a comment
|
[Select-to-speak] Sometimes speech cuts off early because node names and locations become undefined |
||||||||||||||||||||||||
Issue descriptionAll the nodes at a certain point seem to become invalid / all their properties are undefined. Some options: * Keep track of the initial selection state and node reached. After a refresh/invalid event, re-process what remains and keep going. * After completing speech on a NodeGroup, generate the next NodeGroup immediately and then speak it. Instead of finding all the nodes the very beginning For starters: * See why it's all getting invalidated (is there a TreeChange?)
,
Jan 19 2018
Turns out: Inline text boxes are not super stable. The parent staticText sticks around, so we should keep track of the parent staticText nodes instead of the inlineText children.
,
Jan 19 2018
,
Jan 29 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/88d3877f67f544c70e5c98fca6468be99cf91968 commit 88d3877f67f544c70e5c98fca6468be99cf91968 Author: Katie D <katie@chromium.org> Date: Mon Jan 29 22:19:59 2018 Don't save references to inlineTextBox. InlineTextBoxes are not as stable as their staticText parents. Select to Speak will now keep track of staticText instead of inlineTextBoxes during speech. Also adds some null/undefined checks and a new test, which should improve robustness. This still does not work on sites that update live, like nytimes interactive articles which refresh every second or so. However, it does fix behavior in cases like the examples listed in the bug. Bug: 800912 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: Ica886e954905cfb69b9b6a533965d6490c2fae0c Reviewed-on: https://chromium-review.googlesource.com/879405 Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org> Commit-Queue: Katie Dektar <katie@chromium.org> Cr-Commit-Position: refs/heads/master@{#532619} [modify] https://crrev.com/88d3877f67f544c70e5c98fca6468be99cf91968/chrome/browser/resources/chromeos/select_to_speak/paragraph_utils.js [modify] https://crrev.com/88d3877f67f544c70e5c98fca6468be99cf91968/chrome/browser/resources/chromeos/select_to_speak/select_to_speak.js [modify] https://crrev.com/88d3877f67f544c70e5c98fca6468be99cf91968/chrome/browser/resources/chromeos/select_to_speak/select_to_speak_keystroke_selection_test.extjs
,
Jan 29 2018
,
Feb 2 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/8f9dac25a175846cf0cab82b4d0231e8b7da98bc commit 8f9dac25a175846cf0cab82b4d0231e8b7da98bc Author: Katie D <katie@chromium.org> Date: Fri Feb 02 23:34:18 2018 Removes any dependency on inlineTextBoxes state. Previously, we tracked inlineTextBox nodes using their index in the staticText parent. However, if the container holding the text was resized, the staticText parent indices change as the flow of boxes within them changes. This change removes all dependency on the index of the inlineTextBox within the staticText node, and instead relies purely on character indices to determine nodes to highlight. Bug: 800912 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: I0c0ecb2f78912b376040cc029f77a32fec6f5c85 Reviewed-on: https://chromium-review.googlesource.com/898206 Commit-Queue: Katie Dektar <katie@chromium.org> Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#534194} [modify] https://crrev.com/8f9dac25a175846cf0cab82b4d0231e8b7da98bc/chrome/browser/chromeos/accessibility/select_to_speak_browsertest.cc [modify] https://crrev.com/8f9dac25a175846cf0cab82b4d0231e8b7da98bc/chrome/browser/resources/chromeos/select_to_speak/paragraph_utils.js [modify] https://crrev.com/8f9dac25a175846cf0cab82b4d0231e8b7da98bc/chrome/browser/resources/chromeos/select_to_speak/paragraph_utils_unittest.gtestjs [modify] https://crrev.com/8f9dac25a175846cf0cab82b4d0231e8b7da98bc/chrome/browser/resources/chromeos/select_to_speak/select_to_speak.js [modify] https://crrev.com/8f9dac25a175846cf0cab82b4d0231e8b7da98bc/chrome/browser/resources/chromeos/select_to_speak/select_to_speak_keystroke_selection_test.extjs [modify] https://crrev.com/8f9dac25a175846cf0cab82b4d0231e8b7da98bc/chrome/browser/resources/chromeos/select_to_speak/select_to_speak_unittest.gtestjs
,
Apr 10 2018
Moving from just having STS label to also having the UI>Accessibility>SelectToSpeak component to make searching easier in the future. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by katie@chromium.org
, Jan 18 2018Summary: [Select-to-speak] Sometimes speech cuts off early because node names and locations become undefined (was: [Select-to-speak] When reading a long page, like all of the Reddit front page, it stops too early)