Page MenuHomePhabricator

[mobile] Add link: clicking on article elements triggers "Unrecognized symbolic name: alien"
Closed, ResolvedPublic

Description

The issue seems to be specific to mobile.

  1. On mobile open an article (an article should have an image, external links, and references) in add link suggestion mode.
  2. Click on any of the elements - an external link, an image etc. The Console will display
Uncaught Error: Unrecognized symbolic name: alien
at VeUiContextItemFactory.ve.ui.ContextItemFactory.isEmbeddable                 
at VeUiMobileContext.ve.ui.LinearContext.getRelatedSourcesFromModels

Notes:

  • On mobile, when external links are clicked, a slide-up Citation is shown. When an image is clicked, it opens in a full view.
  • the Console errors do not affect user experience

Event Timeline

Hi @Etonkovidova which environment is this from? With changes for T281434: Add link: VE shortcut opens a regular link inspector overlapping add link context item context items for elements other than link recommendations should not be invoked.

kostajh triaged this task as Medium priority.May 7 2021, 7:29 AM

Change 689076 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[VisualEditor/VisualEditor@master] Check if alien context item is registered before using

https://gerrit.wikimedia.org/r/689076

Change 689076 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Check if alien context item is registered before using

https://gerrit.wikimedia.org/r/689076

Hi @Etonkovidova which environment is this from? With changes for T281434: Add link: VE shortcut opens a regular link inspector overlapping add link context item context items for elements other than link recommendations should not be invoked.

I was checking in betalabs (with Chrome mobile emulator).

Testing in betalabs:

No Console errors when the following items are clicked
- ✅ external links
- ✅internal red links
- ✅ internal blue links
Console errors when the following items are clicked
- clicking on an image, e.g. class="ve-ce-mwBlockImageNode-thumbimage"
- clicking on the reference link e.g. <span class="mw-reflink-text">[10]</span>
- clicking on template red links

Hi @Etonkovidova which environment is this from? With changes for T281434: Add link: VE shortcut opens a regular link inspector overlapping add link context item context items for elements other than link recommendations should not be invoked.

I was checking in betalabs (with Chrome mobile emulator).

Testing in betalabs:

No Console errors when the following items are clicked
- ✅ external links
- ✅internal red links
- ✅ internal blue links
Console errors when the following items are clicked
- clicking on an image, e.g. class="ve-ce-mwBlockImageNode-thumbimage"
- clicking on the reference link e.g. <span class="mw-reflink-text">[10]</span>
- clicking on template red links

you're still seeing the console errors in betalabs?

Console errors when the following items are clicked
- clicking on an image, e.g. class="ve-ce-mwBlockImageNode-thumbimage"
- clicking on the reference link e.g. <span class="mw-reflink-text">[10]</span>
- clicking on template red links

you're still seeing the console errors in betalabs?

Yes, just to clarify - the errors displayed in the Console for Chrome mobile emulator on enwiki betalabs.

Screen Shot 2021-05-12 at 9.52.17 AM.png (1×2 px, 370 KB)

Change 692457 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (0c024f431)

https://gerrit.wikimedia.org/r/692457

Change 692457 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (0c024f431)

https://gerrit.wikimedia.org/r/692457

Change 693587 had a related patch set uploaded (by Bartosz Dziewoński; author: Divec):

[VisualEditor/VisualEditor@master] Call contextItemFactory.lookup, not contextItemFactory.registry.lookup

https://gerrit.wikimedia.org/r/693587

Change 693587 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Call contextItemFactory.lookup, not contextItemFactory.registry.lookup

https://gerrit.wikimedia.org/r/693587

Change 693956 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (63e87da8e)

https://gerrit.wikimedia.org/r/693956

matmarex subscribed.

The first patch had a bug that resulted in a different error (T283445). The second patch (by @dchan) should resolve this issue for real.

Change 693956 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (63e87da8e)

https://gerrit.wikimedia.org/r/693956

The first patch had a bug that resulted in a different error (T283445). The second patch (by @dchan) should resolve this issue for real.

Thank you both!

Checked on testwiki wmf.9 - the Console errors were not displayed.