Last modified: 2014-01-16 22:31:09 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 T61972, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59972 - VisualEditor: Exception thrown placing cursor at end of document with no content offsets
VisualEditor: Exception thrown placing cursor at end of document with no cont...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: Normal normal
: VE-deploy-2014-01-16
Assigned To: Ed Sanders
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-12 15:08 UTC by Ed Sanders
Modified: 2014-01-16 22:31 UTC (History)
5 users (show)

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


Attachments

Description Ed Sanders 2014-01-12 15:08:15 UTC
1. Create a document with just a block image [[File:Foo.jpg|thumb]] on one line
2. Edit the document and try to place the cursor in the second slug (after the image)
3. An exception is thrown (getNearestContentOffset(selection.end) returns -1 and this is fed into getAnnotationsFromOffset)
Comment 1 Gerrit Notification Bot 2014-01-13 12:35:50 UTC
Change 107134 had a related patch set uploaded by Esanders:
Check for valid offset when calculating insertion annotations

https://gerrit.wikimedia.org/r/107134
Comment 2 Gerrit Notification Bot 2014-01-13 19:37:33 UTC
Change 107134 merged by jenkins-bot:
Check for valid offset when calculating insertion annotations

https://gerrit.wikimedia.org/r/107134
Comment 3 Rummana Yasmeen 2014-01-16 22:31:09 UTC
verified the fix in test2

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


Navigation
Links