Closed Bug 1791722 Opened 2 years ago Closed 2 years ago

Initialize selection to end of editing host if sending keys to editable element via WebDriver

Categories

(Remote Protocol :: Marionette, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1364426

People

(Reporter: masayuki, Unassigned)

Details

There is a test:
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/webdriver/tests/element_send_keys/content_editable.py

The test is intended to test WebDriver sets focus to editable element and collapse selection to end of the editor because the issue added the test explains so.

I believe that we need to find the last Text node that is a child of element and then call setSelection on that if dealing with a Content Editable. In addition, we probably don't want the select event firing.

However, it seems that there is no agreements across browser vendors because Safari does not do it. And Gecko unexpectedly have passed the tests, but editor will stop initializing Selection unless entire the document is editable (bug 1789967).

Therefore, I think that it needs agreements between browser vendors before changing the WebDriver behavior.

Whiteboard: [webdriver:triage]
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
Whiteboard: [webdriver:triage]
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.