New issue
Advanced search Search tips

Issue 659766 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Edit->Speech->Start Speaking reads the contents of a removed element.

Project Member Reported by ekaramad@chromium.org, Oct 26 2016

Issue description

Version: 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).

 
Owner: ellyjo...@chromium.org
Status: Assigned (was: Untriaged)
ellyjones will have a much better idea of what to do with this. Elly, feel free to reroute or mark as available or whatever.
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