Last modified: 2014-08-29 18:36:06 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 T72175, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70175 - VisualEditor: Attempting to set an invalid range on undo
VisualEditor: Attempting to set an invalid range on undo
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2014-09-04
Assigned To: Ed Sanders
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-29 13:29 UTC by Ed Sanders
Modified: 2014-08-29 18:36 UTC (History)
5 users (show)

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


Attachments

Description Ed Sanders 2014-08-29 13:29:24 UTC
1. Open a page with some content (a few paragraphs)
2. Select all and delete
3. Insert a math node
4. Press undo

You'll get an exception as selectionBefore in the undo stack is still the range of the whole original document, but your document should be empty.
Comment 1 Gerrit Notification Bot 2014-08-29 16:49:52 UTC
Change 157149 had a related patch set uploaded by Esanders:
Track selectionBefore in staging transactions

https://gerrit.wikimedia.org/r/157149
Comment 2 Gerrit Notification Bot 2014-08-29 18:26:40 UTC
Change 157149 merged by jenkins-bot:
Track selectionBefore in staging transactions

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

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


Navigation
Links