New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 593947 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 651485
Owner:
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 1
Type: Bug
Team-Accessibility



Sign in to add a comment

Pressing return while in a content editable might jump out of the content editable

Project Member Reported by nek...@chromium.org, Mar 10 2016

Issue description

OS X 10.11.
Chrome Canary 51.0.2673.0.
VoiceOver on.
1. Focus a content editable, e.g. the e-mail body field in Gmail's compose window.
2. Type something and press return.
3. Notice that the focus may jump to a completely different part of the page.

 

Comment 1 by nek...@chromium.org, Mar 10 2016

Labels: -OS-Windows -Pri-2 OS-Mac Pri-1
It might be related to the work I did with typing in text fields?
Let's bisect.
Labels: -os-ma
Components: UI>Accessibility
Labels: -Cr-UI-Accessibility
Labels: Needs-Bisect
Cc: tkonch...@chromium.org
Labels: Needs-Feedback
Unable to reproduce the issue on MacBook Pro Retina 10.11.4 chrome version 51.0.2673.0 and canary 51.0.2704.2 - With voice over on typing in the e-mail body field in Gmail's compose window and pressing enter the focus goes to the next line as expected.

Please find the screencast

Could you please let me know if i am missing something here in reproducing the issue. A screencast would be helpful in debugging.
593947.mov
19.4 MB Download
Another thing I'm wondering is whether there's an extension that causes this.
nektar@, Could you please recheck the same in a new profile where there are no extensions/apps and update the thread.
nektar@, Gentle ping!!!

Could you please respond as per comment #7

Comment 9 by nek...@chromium.org, May 23 2016

We have determined a possible cause for this issue. Chat notifications in Gmail might make the VoiceOver cursor to jump out of the content editable where the user is composing an e-mail.
We need to wait for a response from the Gmail Team to see if this is something that needs to be handled on Chrome's side.

Labels: -Needs-Feedback -Needs-Bisect
As per comment #9 removing the Needs-Bisect label for now. Please feel free to add it back if required.
Status: Fixed (was: Available)
I asked around and the issue doesn't seem to occur any more. Marking fixed for now.

Status: Available (was: Fixed)
My bad. Victor says that the issue still occurs, mostly if not exclusively in Gmail when composing an email. It doesn't happen with ChromeVox. Only with Voiceover.
I figured out the cause of the issue. It's in Blink.

AXLayoutObject::selection() {

...

focus = selection.endPosition().toParentAnchored();

...

}

In the case of a letter, the end position of the selection (i.e. where the cursor is) would be inside an inline text box. So, the parent anchored position would be the equivalent offset inside the static text node that houses the inline text box.

However, in the case of a <br> element, the parent anchored position lands inside an editable div that houses the <br> element. I don't know why a div element wraps each <br> element, but I verified that if I return the <br> element itself whenever the focus lands on a new line, then the issue goes away.


Mergedinto: 651485
Status: Duplicate (was: Available)

Sign in to add a comment