Page MenuHomePhabricator

CX2: Right-click on a link in a source article - "Uncaught TypeError: Cannot read property 'ownerDocument' of undefined"
Closed, DeclinedPublic

Description

In cx2-testing start a translation and right-click on a link (red or blue) in the source article. The Console will display the following error for each click:

Uncaught TypeError: Cannot read property 'ownerDocument' of undefined
 at Function.Sizzle.contains 
 at Object.OO.ui.contains
 at VeCeSurface.ve.ce.Surface.showSelectionState
 at VeCeSurface.ve.ce.Surface.fixupCursorPosition 
 at VeCeSurface.ve.ce.Surface.onDocumentSelectionChange

Event Timeline

@Etonkovidova, can you recheck this? I am not able to reproduce this locally, nor on cx2-testing.

It's still happening in cx2-testing - e.g. "Rhombicuboctahedron" (Englsih to español). The Console error will be displayed for any blue link and for a red link present in the article - look in the section " Pyritohedral symmetry"(but not for the links in the leading template).

There seems to be some unrelated issues:

  • jQuery.Deferred exception: Cannot read property 'redirects' of undefined
  • The links in the infobox should not be red, and clicking them should not navigate away
  • GET https://dev.translatewiki.net/wiki/Undefined 404 () [trying to load an image?]

But I can't reproduce the reported error message.

Vvjjkkii renamed this task from CX2: Right-click on a link in a source article - "Uncaught TypeError: Cannot read property 'ownerDocument' of undefined" to xucaaaaaaa.Jul 1 2018, 1:10 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 xucaaaaaaa to CX2: Right-click on a link in a source article - "Uncaught TypeError: Cannot read property 'ownerDocument' of undefined".Jul 2 2018, 4:06 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.
Arrbee renamed this task from CX2: Right-click on a link in a source article - "Uncaught TypeError: Cannot read property 'ownerDocument' of undefined" to [to triage] CX2: Right-click on a link in a source article - "Uncaught TypeError: Cannot read property 'ownerDocument' of undefined".Aug 6 2018, 10:23 AM
Arrbee moved this task from Needs Triage to Check & Move on the ContentTranslation board.

@Petar.petkovic - I re-tested the issue and checked if it exists in cx1. The issue seems to be happening only MacOS Chrome67. If you think it should be followed up, you may re-open the ticket.

To summarize:

(1) cx1 does not have such error in any browser/OS.

(2) The error is displayed only on MacOS Chrome67.

(3) Could not check it in IE11 - saved translations are not loaded and new translations cannot be started.

Etonkovidova renamed this task from [to triage] CX2: Right-click on a link in a source article - "Uncaught TypeError: Cannot read property 'ownerDocument' of undefined" to CX2: Right-click on a link in a source article - "Uncaught TypeError: Cannot read property 'ownerDocument' of undefined".Aug 6 2018, 7:41 PM