Edit->Speech->Start Speaking reads the contents of a removed element. |
|
Issue descriptionVersion: 53.0.2785.143 (Official Build) (64-bit) OS: Mac OS X (Sierra) What steps will reproduce the problem? (1) Navigate to a page with some text, e.g., <p> FOO </p> (2) Select "FOO" by highlighting the text. (2) From Edit->Speech select Start Speaking. (3) Hear "FOO" being spoken. (4) Remove the element <p> FOO </p> from DOM, e.g., from java script. (5) Start Speaking again. What is the expected output? Chrome should not speak. What do you see instead? Chrome speaks. We use |selected_text_| in RenderWidgetHostViewMac for SpeakSelection(). After removing the element, we do not update selection, so chrome steal assumes there is some selection. This issue persists in current Canary version: 56.0.2901.0 (Official Build) canary (64-bit).
,
Nov 1 2016
I did dig into this when I reported it but forgot to add info here. In case it is useful, I found that the text chrome speaks comes from selection which is |selected_text_| in RWHVMac. The problem seems to be that, when we remove an element from DOM the text selection is not changed. I think this should be taken care of on the renderer side. |
|
►
Sign in to add a comment |
|
Comment 1 by erikc...@chromium.org
, Nov 1 2016Status: Assigned (was: Untriaged)