Last modified: 2014-04-24 03:31:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T66338, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64338 - VisualEditor: Snowmen inserted (or other bad breakage) with certain easy combinations of actions/keys that move the cursor out of the document
VisualEditor: Snowmen inserted (or other bad breakage) with certain easy comb...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: High major
: VE-deploy-2014-04-24
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-24 00:04 UTC by Alex Monk
Modified: 2014-04-24 03:31 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Alex Monk 2014-04-24 00:04:48 UTC
<Krenair> Move the cursor to the end of a line before the start of a new section header, delete, enter, enter, up, delete, type a random character.
<James_F> Backwards delete or forwards delete?
<Krenair> Um. The delete next to 'Home' and 'End'
<Krenair> not backspace
<James_F> Forwards, then. :-)
<James_F> Whee, snowmen.
<James_F> I blame edsanders.
<Krenair> observed on http://en.wikipedia.org/wiki/Hippeastrum_calyptratum, depending on what random character you try (I hit 'f'), stuff breaks in a difficult to explain but quite obvious
<Krenair> especially if you do it twice to the same document
<James_F> So the first thing that happens is that the cursor ends up outside of the document.
<James_F> Which is Bad™.
<James_F> Everything breaking after this is non-deterministic, but definitely also Bad™.
Comment 1 Roan Kattouw 2014-04-24 03:20:44 UTC
If you put the cursor at the end of a paragraph and press Delete, the cursor will go to the top left corner of the surface (range (0,0)). However, if the next thing after the cursor is not a paragraph (but e.g. a heading) this doesn't happen.

Once the cursor is at (0,0) and you start typing, things break completely.
Comment 2 Gerrit Notification Bot 2014-04-24 03:27:57 UTC
Change 129371 had a related patch set uploaded by Catrope:
Rerender selection after deleting.

https://gerrit.wikimedia.org/r/129371
Comment 3 Gerrit Notification Bot 2014-04-24 03:30:07 UTC
Change 129371 merged by jenkins-bot:
Re-render selection after deleting

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links