https://bugzilla.wikimedia.org/show_bug.cgi?id=59972

       Web browser: ---
            Bug ID: 59972
           Summary: VisualEditor: Exception thrown placing cursor at end
                    of document with no content offsets
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Data Model
          Assignee: esand...@wikimedia.org
          Reporter: esand...@wikimedia.org
                CC: jforres...@wikimedia.org, jh...@wikimedia.org,
                    roan.katt...@gmail.com, ryasm...@wikimedia.org,
                    tpars...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

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)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to