Page MenuHomePhabricator

ve.dm.Surface#setNullSelection should not clear a native selection that is outside of the document
Closed, ResolvedPublic

Description

Steps to reproduce:

  1. Open VE standalone
  2. Programmatically set the selection to somewhere outside the VE surface, then call ve.dm.Surface#setNullSelection

Expected behaviour:
The selection is untouched (because a native selection outside the VE surface is already effectively a null selection from VE's point of view)

Actual behaviour
The selection is cleared

Event Timeline

Change 656569 had a related patch set uploaded (by Divec; owner: Divec):
[VisualEditor/VisualEditor@master] setNullSelection: don't clear a selection outside the surface

https://gerrit.wikimedia.org/r/656569

Change 656569 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] setNullSelection: don't clear a selection outside the surface

https://gerrit.wikimedia.org/r/656569

Change 656978 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (c7ecbcb39)

https://gerrit.wikimedia.org/r/656978

Change 656978 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (c7ecbcb39)

https://gerrit.wikimedia.org/r/656978