Page MenuHomePhabricator

VisualEditor: Link inspector is adding just a link text while opening up the inspector for the second time selecting another element
Closed, ResolvedPublic

Description

link text appearing for the second time

Steps to reproduce:

1.Select a math function/image/gallery/hiero
2.Now open the link inspector
3.Insert a link (this link gets placed just before the selected element)
4.Again select the element
5.Open the link inserter
6.Observe that the link title of the previous link is appearing now in the link inspector
7.Close the link inspector.

Observed Result:
The link text title of the previous link is getting inserted just before the selected element.

See the screenshot attached.

Test Environment: https://test2.wikipedia.org/
Browser: Chrome Version 26.0.1410.65 & FF 25
OS: MAC OS X 10. 8. 5
Page:https://test2.wikipedia.org/wiki/Image_then_gallery?veaction=edit


Version: unspecified
Severity: normal

Attached:

Screen_Shot_2014-02-04_at_11.53.10_AM.png (128×579 px, 12 KB)

Details

Reference
bz60843

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:54 AM
bzimport set Reference to bz60843.

Created attachment 14487
link text getting added before math function

Attached:

Screen_Shot_2014-02-04_at_11.48.47_AM.png (515×1 px, 129 KB)

Change 138114 had a related patch set uploaded by Catrope:
[BREAKING CHANGE] Update VE core submodule to master (43a48cb) for window process cleanup

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

Change 138114 merged by jenkins-bot:
[BREAKING CHANGE] Update VE core submodule to master (43a48cb) for window process cleanup

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

This is not yet fixed.The link text is still getting added next to the previously added link

Selection's not being re-set to the actual link (of the pre-annotation stack or something odd)?

Roan says the fix is to fix the pre-population of the link inspector in create mode. I think.

I think this is fixed now? I can't reproduce it any more...

Confirmed fixed in master but not in wmf18.

Never mind, I'm an idiot. It's still broken if you try to inspect the same reference with the link inspector twice in a row.

I can't reproduce. Probably fixed by Ed's recent cleanup of the link inspector.

Verified the fix in production