Page MenuHomePhabricator

CX2: clicking outside the image - Uncaught Error: ve.dm.Document.getBranchNodeFromOffset(): offset -1 is out of bounds
Closed, DuplicatePublic

Description

  1. Start translating "Leonardo's robot" from English to español.
  2. The source article will display images that are placed on the right (and without text around them. cx-testing will display images on the left).

Screen Shot 2018-05-09 at 11.12.10 AM.png (770×976 px, 243 KB)

  1. Click on the left side of the first image in the source article - the following error will be displayed in the Console:
load.php?debug=false&lang=en&modules=ext.visualEditor.core|oojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1qebf7z:214 Uncaught Error: ve.dm.Document.getBranchNodeFromOffset(): offset -1 is out of bounds
    at VeDmDocument.ve.dm.Document.getBranchNodeFromOffset (load.php?debug=false&lang=en&modules=ext.visualEditor.core|oojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1qebf7z:214)
    at VeDmDocument.ve.dm.Document.hasSlugAtOffset (load.php?debug=false&lang=en&modules=ext.visualEditor.core|oojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1qebf7z:215)
    at VeDmDocument.ve.dm.Document.getNearestCursorOffset (load.php?debug=false&lang=en&modules=ext.visualEditor.core|oojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1qebf7z:214)
    at VeDmDocument.ve.dm.Document.getNearestCursorOffset (load.php?debug=false&lang=en&modules=ext.visualEditor.core|oojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1qebf7z:214)
    at VeCeSurface.ve.ce.Surface.handleObservedChanges (load.php?debug=false&lang=en&modules=ext.visualEditor.core|oojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1qebf7z:458)
    at VeCeSurfaceObserver.ve.ce.SurfaceObserver.pollOnceInternal (load.php?debug=false&lang=en&modules=ext.visualEditor.core|oojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1qebf7z:480)
    at VeCeSurfaceObserver.ve.ce.SurfaceObserver.pollOnce (load.php?debug=false&lang=en&modules=ext.visualEditor.core|oojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1qebf7z:480)
    at VeCeSurface.ve.ce.Surface.afterDocumentMouseDown (load.php?debug=false&lang=en&modules=ext.visualEditor.core|oojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1qebf7z:421)

Event Timeline

Vvjjkkii renamed this task from CX2: clicking outside the image - Uncaught Error: ve.dm.Document.getBranchNodeFromOffset(): offset -1 is out of bounds to aadaaaaaaa.Jul 1 2018, 1:11 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from aadaaaaaaa to CX2: clicking outside the image - Uncaught Error: ve.dm.Document.getBranchNodeFromOffset(): offset -1 is out of bounds.Jul 1 2018, 2:53 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.