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

            Bug ID: 65934
           Summary: VisualEditor: Characters and Pawns are getting added
                    in each line and throwing error:
                    ve.dm.Document.getNodeFromOffset(): offset -1 is out
                    of bounds while trying to add a reference in Firefox
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Editing Tools
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

Created attachment 15528
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=15528&action=edit
Screenshot

Steps to reproduce

1.Open a page
2.Go to Insert>Reference
3.Type in a text as reference

Observed Result:
Each letters are getting added in each line , ends with a pawn then the text
appears.The following error appears in the console:

Error: ve.dm.Document.getNodeFromOffset(): offset -1 is out of bounds

After clicking on "Insert Reference":

TypeError: sel.nativeSelection is null

After saving the page:
TypeError: elem.ownerDocument.defaultView is null

This issue is happening on Firefox only.

Environmen:test2

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

Reply via email to