Page MenuHomePhabricator

Link context not shown after editing a link
Closed, ResolvedPublic

Description

  1. Click on a link
  2. Click 'Edit'
  3. Make a change to the link target
  4. Click 'Done'

Observe that no link context is shown, when it should be.

This bug does not occur if you don't change the link target, or you are on mobile.

Event Timeline

Esanders added a subscriber: dchan.

Strictly speaking a regression, but it's been broken for 4 years since https://gerrit.wikimedia.org/r/c/VisualEditor/VisualEditor/+/270315 (@dchan)

Similar previous bug when inserting links: T227630

Change 633234 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] Fix selection after editing annotations on desktop

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

Esanders moved this task from To Triage to Triaged on the VisualEditor board.
Esanders moved this task from Incoming to Code Review on the Editing-team (Kanban Board) board.

Change 633234 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Fix selection after editing annotations on desktop

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

Change 639332 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (e4bbec336)

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

Change 639332 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (e4bbec336)

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

I seem to be seeing the same experience that inspired this bug to be filed:

  1. Open VE
  2. Click an existing link
  3. Observe the link context item
  4. Click Edit within the link context item
  5. Change the link target by of altering the text in the search field and clicking an item from the "search results"
  6. ❗️ Land back in the article; no link context item appears

See: https://youtu.be/jgD3VwU9lko .

@ppelberg to re-test on beta or in production tomorrow, 19-Nov.

Working as expected on Beta.