Page MenuHomePhabricator

[Regression ?] Context menu for link inspector does not appear after typing something after the link unless user goes to next line in Firefox
Closed, ResolvedPublic8 Estimated Story Points

Description

Steps to reproduce:

  1. Open a page with VE
  2. Add a link with link inspector

3.Type something right after the newly added link
5.Now place cursor on the link to edit the link

Observed Result:
Cannot edit the link I just added, double clicking also does not bring the context menu to edit. If i go to next line by pressing enter.
and place the cursor again on the link, the context menu for the link inspector re-appears.

Before going to next line or clicking anywhere else:

Screen Shot 2015-09-30 at 5.26.24 PM.png (262×505 px, 16 KB)

After coming back to the link:

Screen Shot 2015-09-30 at 5.28.06 PM.png (222×478 px, 19 KB)

Event Timeline

Ryasmeen raised the priority of this task from to High.
Ryasmeen updated the task description. (Show Details)
Ryasmeen added a project: VisualEditor.
Ryasmeen subscribed.
Ryasmeen renamed this task from [Regression ?] Context menu for link inspector does not appear after typinf something after the link unless user goes to next line to [Regression ?] Context menu for link inspector does not appear after typing something after the link unless user goes to next line.Oct 1 2015, 12:29 AM
Ryasmeen set Security to None.
Ryasmeen changed the task status from Stalled to Open.Oct 6 2015, 7:55 PM

yes I can.
Screen capture attached.

Jdforrester-WMF lowered the priority of this task from High to Low.Oct 20 2015, 7:24 PM
Jdforrester-WMF edited a custom field.
Jdforrester-WMF moved this task from To Triage to Needs Discussion/Analysis on the VisualEditor board.

Works fine in Chrome. Error is only reproducible in Firefox.

Turns out: error is reproducible in browsers that don't have selection change events enabled, because the way we're faking them doesn't quite work for non "dragging to select text" cases.

Change 252613 had a related patch set uploaded (by DLynch):
Better faking of onselectionchange

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

Jdforrester-WMF renamed this task from [Regression ?] Context menu for link inspector does not appear after typing something after the link unless user goes to next line to [Regression ?] Context menu for link inspector does not appear after typing something after the link unless user goes to next line in Firefox.Nov 12 2015, 3:50 PM
Jdforrester-WMF closed this task as Resolved.

This is still happening for me on Firefox. Context menu is not appearing when I put my cursor on the link without going to the next line.

Screen Shot 2015-11-12 at 11.33.59 AM.png (322×1 px, 138 KB)

The VisualEditor extension hasn't had its VE core reference updated yet, so the beta cluster won't have this fix.